When invoked, frequent_synonym_groups.py starts listen to Twitter stream, and every 2 seconds prints the top N synonym group that appeared most frequently the last minute (for english words only)
- -h Shows this help message and exit
- --synonyms Number of synonyms
./frequent_synonym_groups.py --synonyms 3
You need to do the following in order to run it:
-
Download the code
-
Install the requirements:
pip install -r requirements.txt
-
Run nltk.download() and download all nltk data