sudutgalau / twitter-sentiment-analysis-web-app

Web App, Deep Learning.https://s3.gifyu.com/images/twitter348df2100d8a5a33.gif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Sentiment Analysis

App

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

Untitled Diagram (6)

How to Install and use

  • clone the repository
  • open command prompt in react-frontend folder, and use npm install to install the front-end dependencies
  • open another command prompt in the root folder and use python install -r requirements.txt to install the server dependencies
  • use python manage.py runserver to run the application

About

Web App, Deep Learning.https://s3.gifyu.com/images/twitter348df2100d8a5a33.gif


Languages

Language:Jupyter Notebook 70.6%Language:Python 15.9%Language:HTML 8.8%Language:CSS 3.3%Language:JavaScript 1.5%