Merge pull request #26 from sivabalan/patch-1
Fixed typo with wordfreqs variable
This commit is contained in:
@@ -17,7 +17,7 @@ def count(word_list, stopwords, wordfreqs):
|
|||||||
# Process the head word
|
# Process the head word
|
||||||
word = word_list[0]
|
word = word_list[0]
|
||||||
if word not in stopwords:
|
if word not in stopwords:
|
||||||
if word in word_freqs:
|
if word in wordfreqs:
|
||||||
wordfreqs[word] += 1
|
wordfreqs[word] += 1
|
||||||
else:
|
else:
|
||||||
wordfreqs[word] = 1
|
wordfreqs[word] = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user