This repository contains Python scripts that interact with the Twitter API to conduct rudimentary sentiment analysis.
- tweet_sentiment.py - Computes the sentiment of each tweet by taking the sum of the scores of each term in the tweet.
- term_sentiment.py - Computes the sentiment of terms not provided in AFINN-111.txt
- frequency.py - Outputs the frequency of each term from a set of tweets
- happiest_state.py - Returns the happiest state from a set of tweets
- top_ten.py - Determines the top ten hashtags from a set of tweets
For 1,2 and 4: Python tweet_sentiment.py <file 1> <file 2>
For 3 and 5. Python frequency <file>