Open KasperThystrup opened 3 years ago
Hi,
I think the wordcount.py
is counting correctly. If you search for me
(note the spaces) then the count is 16. However, if you search for me
but match whole word the count is 33. We can use grep
to double check the counts:
grep -wc "me" isles.txt
33
Thanks,
Ammar
Minor issue: It seems that
wordcount.py
doubles the frequency of each word. e.g. forisles.txt
the wordme
exists 16 times, while its frequency is registered to 33 inisles.dat
.