Skip to content

Interactive determination of tweet sentiment using machine learning.

Notifications You must be signed in to change notification settings

reedbertolotti/Twitter_Sentiment_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Sentiment Analysis

Determine tweet sentiment using machine learning.

Front end allows user to input a tweet. Twitter API used to get that tweet's replies. Sentiment analysis applied to replies to gauge sentiment toward original tweet.

Contents

demo

  • the interactive front-end of our project

notebooks

  • code that trains the model for the back-end of the demo (bertweet_train_final_model.ipynb)
  • exploration and other code not part of the demo

Demo

Environment

JS libraries:

conda install nodejs (version 17.9.0)
change current directory to demo directory
npm install express (version 4.18.1)
npm install python-shell (version 3.0.1)
*note: conda has npm by default

Python libraries:

conda install lxml (version 4.9.0)
conda install tweepy (version 4.10.0)
conda install pandas (version 1.4.2)
conda install tensorflow (version 2.8.1)
conda install transformers (version 4.19.2)
conda install matplotlib (version 3.5.2)
conda install dataframe_image (version 0.1.1)

Model weights

Running:

Notes on running:

Releases

No releases published

Packages

No packages published