Skip to content

This basic python code maintains a counter for every word that appears after a negative and a positive word in the reviews.

Notifications You must be signed in to change notification settings

ramashelke/Senti-Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Senti-Counter

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.

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

No packages published

Languages