This python program accepts a path to the text file as a parameter. The text file contains one review per line. The code reads the list of positive and negative words from the positive-words.txt and negative-words.txt files and creates 2 dictionaries that includes one key for each positive and negative word that appears in the input text file. The dictionaries then map each of these positive and negative words to the number of reviews that include it. It includes only the words that appear right after a positive and negative word in the file.
-
Notifications
You must be signed in to change notification settings - Fork 0
ramashelke/Senti-Counter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This basic python code maintains a counter for every word that appears after a negative and a positive word in the reviews.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published