1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-28 16:10:32 +08:00

moved tokenizers to a seperated module

This commit is contained in:
Wang Bin
2015-05-07 18:52:29 +08:00
parent 7440fa00df
commit 3d91f615cf
6 changed files with 62 additions and 51 deletions

View File

@@ -22,6 +22,11 @@ type Segmenter struct {
dict *Dictionary
}
// Dictionary returns segmenter's dictionary
func (seg *Segmenter) Dictionary() *Dictionary {
return seg.dict
}
// LoadDictionary loads dictionary from given file name. Everytime
// LoadDictionary is called, previously loaded dictionary will be cleard.
func (seg *Segmenter) LoadDictionary(fileName string) error {