Skip to content

Commit

Permalink
Merge pull request fxsjy#351 from gumblex/master
Browse files Browse the repository at this point in the history
fix del_word
  • Loading branch information
fxsjy committed Mar 16, 2016
2 parents 1d5ea9f + 12b2b17 commit 0243d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jieba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def add_word(self, word, freq=None, tag=None):
"""
self.check_initialized()
word = strdecode(word)
freq = int(freq) if freq else self.suggest_freq(word, False)
freq = int(freq) if freq is not None else self.suggest_freq(word, False)
self.FREQ[word] = freq
self.total += freq
if tag:
Expand Down

0 comments on commit 0243d56

Please sign in to comment.