Skip to content

Commit

Permalink
Merge pull request #1 from aymericdamien/master
Browse files Browse the repository at this point in the history
Fixing a bug of 'for loop' (aymericdamien#280)
  • Loading branch information
kongzhidea authored Nov 27, 2018
2 parents 84c99e3 + 9e1bb50 commit 00ff065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/2_BasicModels/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# Retrieve the most common words
count.extend(collections.Counter(text_words).most_common(max_vocabulary_size - 1))
# Remove samples with less than 'min_occurrence' occurrences
for i in range(len(count) - 1, -1):
for i in range(len(count) - 1, -1, -1):
if count[i][1] < min_occurrence:
count.pop(i)
else:
Expand Down

0 comments on commit 00ff065

Please sign in to comment.