1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-22 12:10:30 +08:00

refactor to generalize set dictionary function, not finished yet

This commit is contained in:
Wang Bin
2015-03-25 18:46:14 +08:00
parent 59da5b5e3a
commit e155fe5467
2 changed files with 28 additions and 35 deletions

View File

@@ -107,6 +107,6 @@ func (j *Jieba) LoadUserDict(dictFilePath string) error {
// sentence.
func NewJieba(dictFileName string) (*Jieba, error) {
j := &Jieba{Total: 0.0, Freq: make(map[string]float64)}
err := j.load(dictFileName)
err := SetDict(j, dictFileName, false)
return j, err
}