Skip to content

MubashirullahD/Tweets-Sentiment-Analysis

Repository files navigation

Tweets-Sentiment-Analysis

This project has code on how to download tweets by a certain topic using Tweepy, simple code to label them manually and the classification algorithms code. NN coded separetely.

Sentiment Analysis of Tweets related to Vaccines

Remarks

If Positive and Neutral classes are combined and the task turned into vaccine misinformation classification where negative tweets are misinformation, then you can achieve an accuracy of 82.5% with Multinomial Naive Bayes.

Files

Code:

  • Collect Tweets.ipynb
  • Label Tweets.ipynb
  • Prediction Model.ipynb
  • Sentiment_Analysis_of_Tweets_using_NN.ipynb

Dataset:

Other:

  • auth.py, this contains the keys you get from your twitter developer APIs
  • composition.py, for text preprossessing

Installation

Clone this repo in a virtual environment folder. Download the dependencies. Hopefully it will work.

$ pip install -r requirements.txt

Meta

Muhammad Mubashirullah Durrani – mdurrani.cs@gmail.com

Releases

No releases published

Packages

No packages published