/wordcounter

to count words frequency in a text file with nltk

Primary LanguagePythonApache License 2.0Apache-2.0

wordcounter

to count words frequency in a text file with nltk

requirs

  • python 2.x
  • nltk

how to use

  1. put your text file into the path wordcounter, for example, a file named "sophiesworld_1_to_2.txt"
  2. execute the following commands
cd wordcounter
python word_counter.py sophiesworld_1_to_2.txt
  1. the result will be writen in the file named result.txt