Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saketr3/sentiment-explorer
https://github.com/saketr3/sentiment-explorer
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/saketr3/sentiment-explorer
- Owner: SaketR3
- Created: 2024-07-13T21:59:06.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T20:50:11.000Z (4 months ago)
- Last Synced: 2024-07-23T23:55:46.178Z (4 months ago)
- Language: Python
- 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