01Beyond positive/negative/neutral
Three-class sentiment is a toy. The real value is aspect-based sentiment: which thing is the customer talking about, and how do they feel about it specifically?
A practical guide to sentiment analysis — from a 50-line baseline to production-grade aspect-based sentiment that drives real business decisions.
Binate AI
August 21, 2025

On this page
Three-class sentiment is a toy. The real value is aspect-based sentiment: which thing is the customer talking about, and how do they feel about it specifically?
from transformers import pipeline
nlp = pipeline("sentiment-analysis", model="cardiffnlp/twitter-roberta-base-sentiment-latest")
texts = ["Love the new feature!", "Crashed three times today.", "It's fine."]
for t in texts:
r = nlp(t)[0]
print(t, r["label"], round(r["score"],3))For aspect-based sentiment you need two outputs per review: the aspects mentioned (food, service, price) and the sentiment toward each.
prompt = """Extract aspects and sentiment from the review.
Return JSON: [{"aspect": str, "sentiment": "pos|neg|neu", "evidence": str}].
Review: "{text}"
"""
result = llm.chat(prompt.format(text=review)).json()A dashboard of percentages does not drive action. Give product managers a feed of negative reviews per feature, with evidence quotes and a trend line.
Action Checklist
0/5Small model
LLM
We design aspect-based sentiment systems that PMs actually use.
See our NLP workSentiment is only useful when it is aspect-based, alert-driven, and tied to a PM workflow. Build for action, not dashboards.
Aspect-based sentiment analysis identifies which specific thing a customer is talking about, such as food, service, or price, and how they feel about each one. A review like "The food was great but the service was terrible" contains two opposite sentiments, which simple positive, negative, or neutral polarity would miss entirely.
Our experts are ready to power your AI journey.