What is sentiment analysis?

Sentiment analysis is the natural language processing task of automatically identifying the opinion or attitude in a text and assigning it to predefined sentiment or evaluative classes.

It differs from text classification in focus: text classification assigns any defined label, while sentiment analysis concentrates on attitude. Classes are not limited to positive, negative and neutral; intensity, specific emotions or attitude towards a topic can be labelled too.

Topic
Natural language processing and Turkish
Also known as
Opinion mining, sentiment classification

How sentiment analysis works

  1. Document or sentence-level classification gives the whole text a polarity label with a probability score.
  2. Aspect-based sentiment analysis extracts separate attitudes towards different products or services within one text.
  3. Contextual neural models read negation, contrast and domain jargon more accurately than lexicon-based methods.
  4. Scores are calibrated if needed and thresholded; low-confidence or conflicting records go to human review.

In more detail

Zero-shot analysis with LLMs and distillation

Modern sentiment pipelines often combine large language models with compact classifiers: an LLM labels or distils domain examples during development, while a smaller encoder model runs high-volume inference on-premise at low latency. When no labelled data exists yet, zero-shot or few-shot LLM prompting helps validate taxonomy definitions before investing in fine-tuning.

Turkish morphology, negation suffixes and spelling variation

In Turkish, agglutinative suffixes (such as negation suffixes like '-ma' and '-me' and modality markers) can flip sentence polarity within a single word and diacritic omissions (writing 's' instead of 'ş' or 'i' instead of 'ı') degrade models trained only on clean text. Tokenisers and training sets should therefore include real informal customer spelling and code-switched expressions.

Multimodal speech and text analysis in contact centres

Relying solely on speech-to-text transcripts discards acoustic cues such as pitch, speaking rate and vocal stress, which often distinguish polite frustration from neutral confirmation. Where call audio is available, multimodal models combining transcript text with prosodic features improve escalation detection, provided workplace emotion-recognition restrictions are respected.

Evaluation metrics, class imbalance and annotator agreement

Accuracy alone misleads when classes are imbalanced, such as rare severe complaints hidden among thousands of neutral tickets. Teams should track Macro-F1, per-class precision and recall on critical negative classes and inter-annotator agreement (such as Cohen's kappa) on gold evaluation sets to detect domain drift over time.

Commonly confused terms

TermHow it differs
Emotion recognitionSentiment analysis classifies positive, negative, neutral or evaluative attitude towards a target; emotion detection classifies discrete affective states such as anger, joy, fear or frustration.
Intent detectionIntent classification identifies what action or goal the user wants to accomplish (such as cancelling a subscription), whereas sentiment analysis measures the emotional tone or evaluative attitude in that message.
Stance detectionStance detection determines whether a text is in favour of, against or neutral towards a specific proposition or entity, even when the text uses positive words to oppose it or negative words to support it, whereas sentiment analysis focuses on overall polarity.

Why sentiment analysis matters for on-premises AI

Call records and complaints contain personal data; analysing them in-house keeps raw text away from outside services. Small fine-tuned classifiers handle high volumes with far less hardware than large language models. Models must be validated on Turkish, domain language and the organisation's own labelled examples; speech-to-text errors in call records also affect results. In regulated sectors, records showing serious harm or reputational risk can reach compliance teams quickly.

ON-PREMISES EXAMPLE

A telecoms operator classifies expressions of dissatisfaction in support tickets alongside topic labels on an in-house system and opens sample results to expert review.

Common questions

Does sentiment analysis handle irony and sarcasm?

Not always. Irony, sarcasm and cultural usage are among the hardest cases; performance is measured on the organisation's own representative examples.

Does sentiment analysis find the topic of a text?

No. Topic extraction is a separate task (topic modelling or text classification); sentiment analysis only measures attitude and the two are often combined.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.