|
@@ -116,7 +116,7 @@
|
|
|
"# Retrieve the most common words\n",
|
|
|
"count.extend(collections.Counter(text_words).most_common(max_vocabulary_size - 1))\n",
|
|
|
"# Remove samples with less than 'min_occurrence' occurrences\n",
|
|
|
- "for i in range(len(count) - 1, -1):\n",
|
|
|
+ "for i in range(len(count) - 1, -1, -1):\n",
|
|
|
" if count[i][1] < min_occurrence:\n",
|
|
|
" count.pop(i)\n",
|
|
|
" else:\n",
|