CoolFace
Apppublic

GGOSinonD/Text-Mining-Amazon-Reviews-Polarity

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ›๏ธ 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

bash
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