Skip to content

Commit

Permalink
fix embedding text_one
Browse files Browse the repository at this point in the history
  • Loading branch information
yongzhuo committed Feb 1, 2020
1 parent 636afc4 commit 1178950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macropodus/network/base/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def deal_corpus(self):
else:
raise RuntimeError("your input level_type is wrong, it must be 'word', 'char', 'ngram'")
for text_one in text:
if term_one not in token2idx:
if text_one not in token2idx:
token2idx[text_one] = len(token2idx)
else:
raise RuntimeError("your input corpus_path is wrong, it must be 'dict' or 'corpus'")
Expand Down

0 comments on commit 1178950

Please sign in to comment.