Go to file
2015-12-07 15:36:04 +01:00
README.md Enhanced doc 2015-12-07 15:36:04 +01:00
wordocc.py Remove default for stop word file 2015-12-07 15:33:30 +01:00

#WordOcc

A word frequency tool that outputs sorted results in csv format, supporting stop words.

Requirements

Usage

Basic

python wordocc.py a_interesting_text.txt

Outputs such content in wordocc.csv in the current directory :

top,43
image,31
sample,29
...

Options

wordocc.py -h
Usage: wordocc.py [options] FILE

Options:
  -h, --help            show this help message and exit
  -s STOP_WORDS, --stop-words=STOP_WORDS
                        path to stop word file
  -o OUTPUT, --output=OUTPUT
	                    csv output filename (default: wordocc.csv)
  -e ENCODING, --encoding=ENCODING
                        file encoding (default: utf-8)

Stop words

Stop words are words that are not interesting for the statistic study, like articles, conjunctions, etc ...

You can provide a file containing those words (one per line). Following files can help :

Use -s option to specify the file path :

python wordocc.py -s /home/jdoe/en/stop.txt a_interesting_text.txt