A simple Thai word segmentation written in Golang, based on Maximum Matching algorithm by S. Manabu . Uses Lexitron (by NECTEC) dictionary as default
go get github.com/narongdejsrn/go-thaiwordcut
import "github.com/narongdejsrn/go-thaiwordcut"
segmenter := gothaiwordcut.Wordcut()
segmenter.LoadDefaultDict()
result := segmenter.Segment("ทดสอบการตัดคำภาษาไทย")