https://github.com/shreyansh26/live-twitter-sentiment-analysis
Sentiment analysis on live twitter stream and plotting the sentiment values using Matplotlib
https://github.com/shreyansh26/live-twitter-sentiment-analysis
nltk twitter-sentiment-analysis twitter-streaming-api
Last synced: 6 months ago
JSON representation
Sentiment analysis on live twitter stream and plotting the sentiment values using Matplotlib
- Host: GitHub
- URL: https://github.com/shreyansh26/live-twitter-sentiment-analysis
- Owner: shreyansh26
- License: mit
- Created: 2017-07-09T05:06:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T01:16:00.000Z (almost 7 years ago)
- Last Synced: 2025-03-24T18:52:36.979Z (7 months ago)
- Topics: nltk, twitter-sentiment-analysis, twitter-streaming-api
- Language: Python
- Homepage:
- Size: 1.43 MB
- Stars: 4
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 BayesThe 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**.