Sentiment Analysis

Last Updated: July 29, 2026 | By Mihail Sebastian | AI Dictionary

An NLP technique that determines whether text expresses positive, negative, or neutral feeling, used to read customer reviews and social posts at scale.

What is Sentiment Analysis?

Sentiment analysis is a natural language processing technique that determines whether a piece of text expresses positive, negative, or neutral feeling. It turns opinions written in free text, like reviews, support tickets, and social posts, into numbers a company can count, track, and compare over time.

Under the hood it is usually a classification task: the model assigns each text to a sentiment class it learned from labeled examples.

Types of Sentiment Analysis

  1. Binary sentiment analysis sorts text into positive or negative, nothing in between.
  2. Multi-class sentiment analysis adds finer grades, such as neutral, or a one-to-five scale that mirrors star ratings.
  3. Aspect-based sentiment analysis scores each feature separately, so “great food, slow service” registers as positive on food and negative on service instead of canceling out.

Applications of Sentiment Analysis

Example of Sentiment Analysis

A hotel chain runs every guest review through an aspect-based model. The review “Perfect location, but the room smelled damp and check-in took forty minutes” produces three scores: location positive, cleanliness negative, service negative. A plain positive/negative classifier would flatten this into one muddy label.

Aggregated across thousands of reviews per property, the scores show each hotel exactly where it loses guests. The known weak spot is language itself: sarcasm like “Great, another cold shower” still fools models that read words literally.

Related AI terms: Classification · Natural Language Processing · Tokenization · Word Embedding

Did you like the Sentiment Analysis gist?

Learn about 250+ need-to-know artificial intelligence terms in the AI Dictionary.

Mihail Sebastian — Writes about AI governance, regulation, and the technology behind them. Placeholder bio — replace with a real credential line. About

Read the Governor's Letter

Stay ahead with Governor's Letter, the newsletter delivering expert insights, AI updates, and curated knowledge directly to your inbox.

By subscribing to the Governor's Letter, you consent to receive emails from AI Guv.
We respect your privacy - read our Privacy Policy to learn how we protect your information.

Browse All AI Terms A–Z

Every term in the dictionary, in alphabetical order. Jump to a letter or scroll the full list.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z