Merge pull request #41 from j10sanders/patch-1
Fix function arguments in comment
This commit is contained in:
@@ -35,7 +35,7 @@ def wf_print(wordfreq):
|
|||||||
stop_words = set(open('../stop_words.txt').read().split(','))
|
stop_words = set(open('../stop_words.txt').read().split(','))
|
||||||
words = re.findall('[a-z]{2,}', open(sys.argv[1]).read().lower())
|
words = re.findall('[a-z]{2,}', open(sys.argv[1]).read().lower())
|
||||||
word_freqs = {}
|
word_freqs = {}
|
||||||
# Theoretically, we would just call count(words, word_freqs)
|
# Theoretically, we would just call count(words, stop_words, word_freqs)
|
||||||
# Try doing that and see what happens.
|
# Try doing that and see what happens.
|
||||||
for i in range(0, len(words), RECURSION_LIMIT):
|
for i in range(0, len(words), RECURSION_LIMIT):
|
||||||
count(words[i:i+RECURSION_LIMIT], stop_words, word_freqs)
|
count(words[i:i+RECURSION_LIMIT], stop_words, word_freqs)
|
||||||
|
|||||||
Reference in New Issue
Block a user