https://github.com/saketr3/sentiment-explorer
Web app where users can analyze the sentiment of recent tweets using an RNN to determine how society feels about certain issues
https://github.com/saketr3/sentiment-explorer
recurrent-neural-network rnn sentiment-analysis
Last synced: 4 months ago
JSON representation
Web app where users can analyze the sentiment of recent tweets using an RNN to determine how society feels about certain issues
- Host: GitHub
- URL: https://github.com/saketr3/sentiment-explorer
- Owner: SaketR3
- Created: 2024-07-13T21:59:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-31T21:01:40.000Z (11 months ago)
- Last Synced: 2025-01-20T20:48:46.498Z (6 months ago)
- Topics: recurrent-neural-network, rnn, sentiment-analysis
- Language: Python
- Homepage:
- Size: 22.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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