Skip to content

Commit

Permalink
fix del_word
Browse files Browse the repository at this point in the history
  • Loading branch information
gumblex committed Mar 15, 2016
1 parent 1d5ea9f commit 12b2b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jieba/__init__.py
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 12b2b17

Please sign in to comment.