Skip to content

Commit

Permalink
avoid buggy shared list use (piskvorky#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
gojomo committed Oct 6, 2020
1 parent baee8e7 commit 4ca5b78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gensim/models/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ def prepare_vocab(
else:
logger.info("Updating model with new vocabulary")
new_total = pre_exist_total = 0
new_words = pre_exist_words = []
new_words = []
pre_exist_words = []
for word, v in self.raw_vocab.items():
if keep_vocab_item(word, v, self.effective_min_count, trim_rule=trim_rule):
if self.wv.has_index_for(word):
Expand Down

0 comments on commit 4ca5b78

Please sign in to comment.