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:
5
jieba.go
5
jieba.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user