Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Segmenter ¶
type Segmenter struct { Tree *radix.Tree // contains filtered or unexported fields }
Segmenter : Segmenter main class
func (*Segmenter) LoadDefaultDict ¶
LoadDefaultDict : load dictionary into trie
func (w *Segmenter) LoadDefaultDict() { _, filename, _, _ := runtime.Caller(0) w.loadFileIntoTrie(path.Dir(filename) + "/dict/lexitron.txt") }
Click to show internal directories.
Click to hide internal directories.