Skip to content

Commit

Permalink
fix bug: load_userdict
Browse files Browse the repository at this point in the history
  • Loading branch information
fxsjy committed Feb 14, 2015
1 parent a06b7d3 commit abcaf3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jieba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ def add_word(word, freq, tag=None):
user_word_tag_tab[word] = tag
for ch in xrange(len(word)):
wfrag = word[:ch + 1]
if wfrag not in lfreq:
lfreq[wfrag] = 0
if wfrag not in FREQ:
FREQ[wfrag] = 0

__ref_cut = cut
__ref_cut_for_search = cut_for_search
Expand Down

0 comments on commit abcaf3e

Please sign in to comment.