Skip to content

Sentiment analysis on live twitter stream and plotting the sentiment values using Matplotlib

License

Notifications You must be signed in to change notification settings

san089/Live-Twitter-Sentiment-Analysis

 
 

Repository files navigation

Live Twitter Sentiment Analysis

I created a module called sentiment_mod using NLTK. The classifier used for sentiment analysis is a custom classifier based on voting involving various algorithms including -

  • Original Naive Bayes Classifier of NLTK
  • Multinomial Naive Bayes
  • Stochastic Gradient Descent (SGD)
  • Bernoulli Naive Bayes

The module can do sentiment analysis on any piece of text and describe it as positive(pos) or negative(neg).

The file live_twitter_sentiment.py is used to do twitter analysis on live twitter feed on ay topic.
The file graphing_live_twitter.py plots a live graph of the sentiment value of tweets.

The pickle files can also be made by running the sentiment_module_1.py.

About

Sentiment analysis on live twitter stream and plotting the sentiment values using Matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 76.4%
  • Python 23.6%