Fixed typo with wordfreqs variable

This commit is contained in:
sivabalan
2015-01-31 15:16:39 -08:00
parent 47c5cd0d5c
commit c9c37d8072

View File

@@ -17,7 +17,7 @@ def count(word_list, stopwords, wordfreqs):
# Process the head word
word = word_list[0]
if word not in stopwords:
if word in word_freqs:
if word in wordfreqs:
wordfreqs[word] += 1
else:
wordfreqs[word] = 1