Skip to content

Repository files navigation

tsplitter godoc badgegocover badgeBuild StatusGo Report Card

Thai word break written in GO

Installation

go get -u github.com/plimble/tsplitter

Example

#####Get all words

funcmain(){
dict:=NewFileDict("dictionary.txt")
txt:="ตัดคำไทย"words:=Split(dict, txt)
fmt.Println(words.All()) //ตัด, คำ, ไทย
}

#####Get deduplicate word

funcmain(){
dict:=NewFileDict("dictionary.txt")
txt:="ตัดคำไทย"words:=Split(dict, txt)
fmt.Println(words.Known())
fmt.Println(words.Unknown())
}

Documentation

###Contributing

If you'd like to help out with the project. You can put up a Pull Request.

About

Thai word break written in GO

Resources

Stars

6 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages