to count words frequency in a text file with nltk
- python 2.x
- nltk
- put your text file into the path
wordcounter
, for example, a file named "sophiesworld_1_to_2.txt" - execute the following commands
cd wordcounter
python word_counter.py sophiesworld_1_to_2.txt
- the result will be writen in the file named
result.txt