Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apply_bpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def read_vocabulary(vocab_file, threshold):
for line in vocab_file:
word, freq = line.strip('\r\n ').split(' ')
freq = int(freq)
if threshold == None or freq >= threshold:
if threshold is None or freq >= threshold:
vocabulary.add(word)

return vocabulary
Expand Down