Subjectivity Detection — Objective vs. Subjective Text

Machine Learning
Type
NLP text-classification task

What does it do?

Subjectivity detection is a text-classification task that decides whether a sentence or document conveys objective information or subjective content such as personal opinion or emotion.

Its background lies in the opinion-annotation work of Wiebe, Wilson and Cardie (2005). It is most often run as a preliminary step before sentiment analysis.

The intuition behind the method

Not every sentence that mentions a product or event carries an opinion: some report facts, while others express feelings or judgements. Subjectivity detection answers a narrower question than sentiment analysis, namely whether a unit of text is opinion at all. Each unit receives a label, or a score between 0 (objective) and 1 (subjective), based on its wording and on patterns learned from annotated examples, so the result is only as consistent as the annotation behind it. An evaluation is only meaningful if its test labels were produced under the same guideline as the training labels.

History

Subjectivity detection grew out of opinion-mining research. Wiebe, Wilson and Cardie (2005) described a framework for annotating expressions of opinion and emotion in language. The task is now commonly used as a filtering stage in sentiment-analysis pipelines.

When to use it

Choose subjectivity detection when text must be split into opinionated and neutral units, typically before sentiment analysis, and when you can supply either a labelled set of objective and subjective examples or a subjectivity lexicon suited to your domain. It also fits when the question is simply whether a passage contains opinion, not which way it leans. Do not use it when no labelled data or lexicon is available, because the classify step then has nothing to learn from or match against. It is a poor fit when your domain differs strongly from the one a lexicon or model was built for and you cannot adapt and validate it. If you apply an existing lexicon or model, first validate it on a sample labelled from your target domain, and report any mismatch in domain or genre as a limitation of your results. If the research question concerns polarity or specific emotions, a sentiment or emotion method is the better primary choice.

Limitations and considerations

  • It cannot run without a labelled data set or a subjectivity lexicon, so annotation is a prerequisite rather than an optional step.
  • Because subjectivity depends on domain, a lexicon or model trained in one domain may transfer poorly and need adaptation.
  • Subjectivity is a different property from sentiment polarity, so the output says nothing about whether an opinion is positive or negative.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • It isolates opinionated units from neutral ones, so a downstream sentiment step is applied to text that is likely to contain opinion.
  • Each unit receives a single label or score, which keeps the output simple to inspect and to pass to later stages.
  • It can be built from a subjectivity lexicon or from a labelled training set, so it can match the resources available for a given domain.

Applications

  • Filtering opinionated sentences from neutral ones as a first stage of a sentiment-analysis pipeline.
  • Separating fact-reporting passages from commentary in news and media text.
  • Flagging subjective content in reviews and social-media posts for downstream opinion analysis.
  • Isolating subjective material to build cleaner training sets for further labelling.

How it works

How it works

1

The corpus is segmented into the units to be classified, usually sentences or whole documents, and cleaned so that the same text handling applies to every unit. Because the boundary between objective and subjective wording is subtle, the annotation guideline that defines what counts as subjective should be fixed before labelling begins.

2

Each unit is converted into features the classifier can use. These may come from a subjectivity lexicon, a list of words and phrases that tend to signal opinion, or from features learned from labelled text. Learned features still depend on labelled training data, so both routes rest on human annotation.

3

A classifier assigns each unit an objective or subjective label, or a continuous score between 0 and 1. The decision rule is fitted from a labelled training set or derived from lexicon entries, and the output is one subjectivity judgement per text unit. Where a score is produced, it is converted into a label by a threshold, which should be chosen on validation data rather than assumed, because the appropriate cut-off can differ between domains.

4

Predictions are compared against a held-out labelled test set, not the training data, and the errors are inspected. Performance is reported with standard classification metrics: precision, recall and F1 for the subjective class, which show how many opinionated units the filter catches and how many neutral units it wrongly keeps. Agreement between annotators on a sample of units should be measured, for example with inter-annotator agreement, to show whether the annotation guideline is applied consistently before the filter is trusted. The evaluation should also show whether the model separates subjectivity from sentiment polarity, since a subjective sentence can be neutral in polarity.

Common pitfalls

  • Treating subjectivity as sentiment: a subjective sentence can be neither positive nor negative, so a polarity check cannot replace a subjectivity check.
  • Reusing a lexicon or model from another domain without validation, since the line between objective and subjective wording shifts across domains.
  • Labelling without a written annotation guideline, which yields inconsistent labels and a classifier that learns annotator disagreement.

Frequently asked questions

How is subjectivity detection different from sentiment analysis?

Subjectivity detection decides whether text contains opinion at all, distinguishing objective fact from subjective opinion, while sentiment analysis measures the polarity of an opinion as positive, negative, or neutral. Subjectivity detection is typically run first, as a filter, before sentiment polarity is assessed.

What do I need to run it?

Either a labelled data set of objective and subjective examples, or a subjectivity lexicon for your domain. Because what counts as subjective varies by domain, fix an annotation guideline before labelling, and expect a model trained on one domain to need adaptation for another.

What does the output look like?

Each text unit receives an objective-versus-subjective label, or a continuous subjectivity score between 0 (fully objective) and 1 (fully subjective), which can then feed a downstream sentiment step.

How much text do I need?

The amount needed depends on the domain, the method chosen and how hard the distinction is in your data. You need enough labelled units to train or adapt the classifier and a separate held-out labelled set to test it. Without labelled data or a lexicon, the task cannot be run.

Related methods

Sources

  1. Wiebe, J., Wilson, T. & Cardie, C. (2005). Annotating Expressions of Opinions and Emotions in Language. Language Resources and Evaluation, 39(2-3), 165-210.

    Open DOI reference
  2. Pang, B. & Lee, L. (2004). A Sentimental Education: Sentiment Analysis Using Subjectivity Summarization Based on Minimum Cuts. Proceedings of ACL.

    Open publication reference