diff --git a/gensim/models/word2vec.py b/gensim/models/word2vec.py index 806e087c56..595a657fc0 100755 --- a/gensim/models/word2vec.py +++ b/gensim/models/word2vec.py @@ -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):