Sentiment analysis determines the emotional tone or opinion expressed in text, classifying content as positive, negative, or neutral, with more advanced systems detecting specific emotions, aspect-level sentiment, or intensity gradations. The simplest form is document-level classification: is this review positive or negative? Aspect-based sentiment analysis is more granular: 'The food was excellent but the service was slow' expresses positive sentiment about food and negative sentiment about service. Emotion detection goes beyond polarity to identify specific emotions: joy, anger, fear, sadness, surprise, disgust. Training data typically comes from labeled reviews, social media posts, or surveys. Transfer learning from large language models has greatly improved accuracy, especially for subtle or indirect sentiment. Challenges include sarcasm (positive words with negative meaning), implicit sentiment (facts that imply opinion), domain dependence (words have different connotations in different contexts), and cultural variation. Applications span brand monitoring, customer feedback analysis, social media analytics, financial markets (gauging investor sentiment), political analysis, and customer service. Sentiment scores can be aggregated across time, topics, or demographics for trend analysis.
Back to Glossary