Project/Machine learning

Sentiment and Emotion Detection

NLP classification in a web app

Star ratings hide what customers actually wrote. This demo store runs every review through a Python classification pipeline and labels it positive, neutral or negative, and a companion Streamlit app classifies text into eight emotions using models trained on about 35,000 labelled sentences.

Built with
  • Python
  • NLP
  • Logistic Regression
  • Naive Bayes
  • Streamlit
  • React
What sets it apart
Reads the words, not just the stars: every review gets its own sentiment label next to the rating it was left with.
Screenshot of Sentiment and Emotion Detection

§ 01

Overview

Products are listed with their price and average rating, and on each product page shoppers add a rating and a written review. The review text is classified as Positive, Neutral or Negative and shown next to the rating. A companion Streamlit app applies the same approach to emotion - anger, disgust, fear, joy, neutral, sadness, shame or surprise - using Logistic Regression and Multinomial Naive Bayes trained on 34,795 labelled sentences after stop-word, punctuation and handle removal.

My part

  • Text preprocessing, model training and evaluation in Python, served through a web store and a Streamlit app.