This is a web app which can be used to analyze users' sentiments across Twitter hashtags. Its created using React and Django and uses an LSTM model trained on the Kaggle Sentiment140 dataset and served as a REST API to the ReactJS frontend.
The server pulls tweets using tweepy and performs inference using Keras. It also pulls data from the Wikipedia API based the hashtag chosen to display a short description. As part of the analysis, I also added few examples of the tweets and their predicted sentiments. A kernel for another sentiment classification using a CNN + 1D pooling can be found here
- clone the repository
- open command prompt in
react-frontend
folder, and usenpm install
to install the front-end dependencies - open another command prompt in the
root
folder and usepython install -r requirements.txt
to install the server dependencies - use
python manage.py runserver
to run the application