Fix function arguments in comment

This commit is contained in:
Jonathan Sanders
2018-07-13 12:24:50 -04:00
committed by GitHub
parent d521abd5d7
commit b6d0b86e56

View File

@@ -35,7 +35,7 @@ def wf_print(wordfreq):
stop_words = set(open('../stop_words.txt').read().split(','))
words = re.findall('[a-z]{2,}', open(sys.argv[1]).read().lower())
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.
for i in range(0, len(words), RECURSION_LIMIT):
count(words[i:i+RECURSION_LIMIT], stop_words, word_freqs)