This package allows you to analyze a set of .txt text files and quantify the count of a given set of keywords and phrases. It returns a .CSV of the results, which can be used to generate various graphs:
To run this package, you will need several functions.
-
This package was written on a MAC OSX system. It has not been tested on Linux or Windows.
-
This package requires an Anaconda Distribution of Python, either 2.7+ or 3.5+. See https://www.continuum.io/downloads. Although these packages should be included, you can install them if needed:
- NLTK
pip install NLTK
- NLTK
-
Git clone this repository:
git clone https://github.com/jmausolf/Python_Tutorials/ -
Navigate to the Python Scripts folder in this repository and run the example:
cd Text_Keyword_Counter python find_keywords.py
To learn more about the code, please check out the tutorial.
