Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Text mining›Sentiment Analysis — Opinion Mining
Process / pipeline

Sentiment Analysis — Opinion Mining

Sentiment Analysis (Opinion Mining) · Also known as: opinion mining, polarity detection, duygu analizi

Sentiment analysis, also called opinion mining, is a natural-language-processing task that detects the emotional tone of text — typically classifying it as positive, negative, or neutral. It turns unstructured opinion text into structured, quantifiable polarity signals using one of three families of approaches: sentiment lexicons, trained machine-learning classifiers, or pretrained transformer models.

ScholarGate
  1. Process / pipeline
  2. v2
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Sentiment Analysis
BERT EmbeddingsText ClassificationTF-IDFArgument MiningAspect-Based Sentiment A…Automated Essay ScoringAutomatic Text EvaluationBERTopicClinical Text MiningCo-occurrence Analysis

+58 more

When to use it

Sentiment analysis fits when you have text data to work with and a language model or lexicon that matches the language of that text. A small corpus can be handled with a simple lexicon, while larger labelled corpora support supervised classifiers or transformers. Supervised models in particular need a reasonably large, balanced labelled set; with very few documents a lexicon-based method is the safer choice. If there is no text data at all, sentiment analysis cannot run.

Strengths & limitations

Strengths
  • Flexible across approaches: a simple lexicon works on small corpora, while transformers capture context in large ones.
  • Turns unstructured opinion text into structured, quantifiable polarity signals.
  • Scales from quick dictionary scoring to context-aware language models without changing the overall pipeline.
Limitations
  • Supervised models need a sufficiently large, balanced labelled corpus to learn reliable patterns.
  • Performance depends on the language model or lexicon matching the corpus language.
  • Sarcasm, negation, and domain shift remain hard for every approach.

Frequently asked

Lexicon, machine learning, or transformer — which approach should I use?

A lexicon-based approach applies a dictionary of sentiment-bearing words and works well on small corpora with no labelled data. A machine-learning classifier learns patterns from a labelled training set and adapts to your domain. A transformer-based model uses a pretrained language model to capture context and generally performs best on large corpora, at higher computational cost.

How accurate is sentiment analysis?

Accuracy varies with the approach, the corpus, and how well the model matches the text. Evaluate with accuracy, F1, precision, and recall on held-out labelled data; on imbalanced classes, accuracy alone can be misleading, so rely on F1, precision, and recall.

Can it work in languages other than English?

Yes, but the chosen language model or lexicon must match the target language of the corpus. Applying an English lexicon or model to text in another language is a common cause of poor results.

How are negation and sarcasm handled?

These remain among the hardest cases. Negation can flip polarity and sarcasm can invert the literal meaning entirely. Context-aware transformer models cope better than simple lexicons, but no approach handles sarcasm reliably, so error inspection during evaluation matters.

Sources

  1. Pang, B. & Lee, L. (2008). Opinion Mining and Sentiment Analysis. Foundations and Trends in Information Retrieval, 2(1-2), 1-135. DOI: 10.1561/1500000011 ↗

How to cite this page

ScholarGate. (2026, June 1). Sentiment Analysis (Opinion Mining). ScholarGate. https://scholargate.app/en/text-mining/sentiment-analysis

Related methods

BERT EmbeddingsText ClassificationTF-IDF

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • BERT EmbeddingsText mining↔ compare
  • Text ClassificationText mining↔ compare
  • TF-IDFText mining↔ compare
Compare side by side →

Referenced by

Argument MiningAspect-Based Sentiment AnalysisAutomated Essay ScoringAutomatic Text EvaluationBERT EmbeddingsBERTopicClinical Text MiningCo-occurrence AnalysisContent AnalysisCoreference ResolutionCross-lingual Text AnalysisDialogue Act ClassificationDictionary-Based Text Analysis in PoliticsDiscourse ParsingDoc2VecDomain AdaptationEmotion DetectionEvent DetectionFake News DetectionFew-Shot Text ClassificationGender Bias DetectionHallucination DetectionHate Speech DetectionImplicit Sentiment AnalysisIntent DetectionKeyword ExtractionLanguage IdentificationLexical DiversityLexical SubstitutionLexicon-Based Sentiment AnalysisLinguistic Acceptability AssessmentMachine Reading ComprehensionMachine TranslationMorphological AnalysisMulti-Document SummarizationMultimodal NLPNegation DetectionOpinion MiningParaphrase DetectionPropaganda DetectionQuestion AnsweringReadability AnalysisScientific Text MiningSemantic ParsingSemantic SimilaritySentiment Analysis in CommunicationSocial Media NLPSpeculation DetectionSpelling and Grammar CheckStance DetectionSubjectivity DetectionSupervised Text ClassificationText ClassificationText Coherence ScoringText Complexity AnalysisText DeduplicationText Frequency AnalysisText InfillingText Network AnalysisText NormalizationText RegressionText SegmentationText SummarizationTextual EntailmentTF-IDFTopic Modeling (LDA)Word Sense DisambiguationZero-Shot Classification

Similar methods

Subjectivity DetectionLexicon-Based Sentiment AnalysisEmotion DetectionOpinion MiningSentiment Analysis in CommunicationAspect-Based Sentiment AnalysisImplicit Sentiment AnalysisIntent Detection

Related reference concepts

Text Classification and Sentiment AnalysisText ClassificationNatural Language ProcessingNatural Language Processing in Clinical DocumentationPart-of-Speech Tagging and Sequence LabelingInformation Extraction

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Sentiment Analysis (Sentiment Analysis (Opinion Mining)). Retrieved 2026-07-21 from https://scholargate.app/en/text-mining/sentiment-analysis · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Type
NLP text-classification task
Approaches
Lexicon-based / machine-learning / transformer-based
Output
Polarity label (positive / negative / neutral)
Related methods
BERT EmbeddingsText ClassificationTF-IDF
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account