fix a bug of add_word

This commit is contained in:
fxsjy 2013-12-05 13:35:40 +08:00
parent 0125548a37
commit 5e6a2c4661

View File

@ -276,6 +276,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)