mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-05 00:32:51 +08:00
fixed a typo in previous commit
This commit is contained in:
@@ -18,7 +18,7 @@ func (l *IDFLoader) AddEntry(entry *jiebago.Entry) {
|
||||
|
||||
func NewIDFLoader(IDFFileName string) (*IDFLoader, error) {
|
||||
loader := &IDFLoader{make(map[string]float64), 0.0, make([]float64, 0)}
|
||||
err = jiebago.LoadDict(loader, IDFFileName, false)
|
||||
err := jiebago.LoadDict(loader, IDFFileName, false)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user