mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix a bug of add_word
This commit is contained in:
parent
e79d54b380
commit
136676381a
@ -309,6 +309,7 @@ def load_userdict(f):
|
||||
else:
|
||||
add_word(word, freq)
|
||||
|
||||
@require_initialized
|
||||
def add_word(word, freq, tag=None):
|
||||
global FREQ, trie, total, user_word_tag_tab
|
||||
freq = float(freq)
|
||||
|
Loading…
x
Reference in New Issue
Block a user