GGOSinonD/Text-Mining-Amazon-Reviews-Polarity
0
๐๏ธ Amazon Reviews Sentiment Polarity App
This is a Streamlit app that performs sentiment analysis on Amazon product reviews using a fine-tuned BERT model.
๐ Live Demo: View on Hugging Face Spaces
๐ Features
- ๐ Global Sentiment Analysis โ Predicts the overall sentiment of the entire review.
- โ๏ธ Sentence-Level Predictions โ Splits the review into sentences and classifies each individually.
- ๐จ Color-Coded Output:
- โ Positive โ green highlight
- โ Negative โ red highlight
- โช Neutral (score < 0.6) โ no highlight
- ๐ฑ๏ธ Hover Animation โ Hover over any sentence to see the sentiment confidence score.
๐ Model Used
AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon- Hosted on Hugging Face ๐ค
- Fine-tuned for sentiment analysis on Amazon reviews
๐งช Example Review
"The build quality is decent. I absolutely love the screen! The battery is okay. But the software is very buggy."
- Global Prediction: Negative
- Shows sentence-by-sentence classification with hover scores and color highlights.
๐งฐ How to Run Locally
git clone https://huggingface.co/spaces/GGOSinonD/Text-Mining-Amazon-Reviews-Polarity
cd Text-Mining-Amazon-Reviews-Polarity
pip install -r requirements.txt
streamlit run app.py
