Skip to content

Web app where users can analyze the sentiment of recent tweets using an RNN to determine how society feels about certain issues

Notifications You must be signed in to change notification settings

SaketR3/sentiment-explorer

Repository files navigation

Sentiment Explorer

Concept

We live in a diverse society, where people have different opinions on many topics. But how do most people really feel about certain issues? Most of us – trapped in filter bubbles and echo chambers on social media – don't really have a clear view of this.

That's where this project comes in. I found a dataset with 1.6 million tweets and adapted a TextVectorization to the data to create a vocabulary. Using this adapted layer, I then created a sentiment analysis recurrent neural network (RNN) model.

Next, I created the Sentiment Explorer web app. In the web app, users can search for any modern social issue or topic they want (example: climate change). The web app then combs through a dataset of nearly 550,000 recent tweets (posted during 2022), finds tweets with the search term, performs sentiment analysis on the filtered tweets using the RNN model, and displays how people feel about the issue.

Sentiment Explorer provides a simple way to gage people's opinions on important issues, such as the environment, economic policies, and civil rights. If worked on further, I believe this tool could have important implications for policymakers, interest groups, and others.

Tech Stack

  • Pandas for data pre-processing
  • TensorFlow for model creation and training
  • Flask for the back-end (e.g. API, serving the model)
  • React.js, Next.js, & useSWR (in TypeScript) for the web app front-end

About

Web app where users can analyze the sentiment of recent tweets using an RNN to determine how society feels about certain issues

Topics

Resources

Stars

Watchers

Forks