Skip to content

zhengrui315/Twitter-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Sentiment Analysis

I scraped tweets containing five Emojis using Twitter API, labeled the tweet texts with the corresponding emojis and then removed the emojis from the texts. Cleaned the texts with python regular expression and converted the data into pandas dataframe. Created a balanced dataset through downsampling. Trained machine learning and deep learning models including KNN, Naive Bayes, SVM, LSTM to predict the emoji given the tweet text.

Tools:

  • Tweepy
  • python regex
  • pandas
  • matplotlib
  • scikit-learn
  • keras

Results:

The baseline accuracy is 20%. The accuracy of SVM reaches ~50%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published