- Introduced by
- Bing Liu
- Year
- 2012
- Type
- NLP information-extraction task
What does it do?
Opinion mining is a natural-language-processing task that extracts, from text, the aspects (features or entities) that people discuss, the polarity of the opinion expressed toward each aspect, and, where it can be identified, the opinion holder.
Its output is usually a set of aspect–opinion–holder records rather than one label for the whole document. Liu (2012) gives a book-length treatment of the task, and Pang and Lee (2008) survey the wider field.
The intuition behind the method
A review rarely carries one flat opinion. A reader may like a phone's screen and dislike its battery in the same paragraph, and a single positive-or-negative label discards that difference. Opinion mining first identifies what is being discussed, then determines how the writer feels about each item, notes who is expressing the view, and records these pieces separately. The result shows opinion feature by feature instead of as one overall verdict.
History
The task is treated at book length in Liu (2012), and the wider field of opinion mining and sentiment analysis, including summarisation of evaluative text, is surveyed in Pang and Lee (2008). The year 2012 refers to the book, not to the origin of the task.
When to use it
Choose opinion mining when your data are texts that contain opinions and your question concerns which features or aspects are praised or criticised, not only the overall tone. Product or service reviews are a typical case, because different attributes are often judged differently within one text. Do not use it when only an overall polarity is needed, since document-level sentiment analysis answers that question more directly. The method requires text data. No established minimum corpus size exists; a few dozen opinion documents is only a rough practical starting point, and more are needed if you want stable results for individual aspects. A domain ontology or product feature list is optional but can help define aspects.
Limitations and considerations
- Aspects must be extracted before opinions can be attached to them, so errors in aspect extraction propagate to every later result.
- When no feature list or ontology is supplied, the set of aspects has to be inferred from the text itself, which can miss aspects that are discussed without being named.
- Holders are not always identifiable from the text, so the holder dimension of the output can be incomplete.
- With few documents, each aspect may appear only a handful of times, which makes aspect-level summaries sensitive to individual texts.
- Extraction and polarity components are usually domain-dependent, so a setup tuned on one domain may perform worse on another.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives feature-level opinion rather than a single document-wide label, so praise and criticism of different attributes stay separate.
- Records aspect–opinion–holder structure, showing which voice expressed which view about which feature.
- Converts unstructured review text into structured records that can be compared and summarised across a corpus.
Applications
- Analysing product and service reviews to see which features customers praise or criticise.
- Summarising user opinions about a topic, brand, or organisation feature by feature.
- Comparing competing products along a shared set of aspects.
- Mining large opinion corpora in business, marketing, and operations research.
How it works
How it works
The text is normalised and split into sentences and tokens so that candidate aspects and the words that describe them can be located reliably. If a product feature list or domain ontology is available, it can be used at this stage to define which terms count as aspects.
Candidate aspects, such as screen or battery, are identified in each text unit. Common approaches are rule-based (for example, noun-phrase patterns), frequency-based (frequently mentioned nouns), or supervised (sequence labelling trained on annotated text). Each aspect becomes a target to which an opinion can later be attached, so the analysis works below the level of the whole document. Performance depends on the domain.
For each extracted aspect, the polarity of the nearby opinion is determined, typically with a sentiment lexicon or a trained classifier. Lexicons are transparent but can miss domain-specific wording; trained classifiers adapt to a domain but need annotated data. The holder is associated with the opinion where the text makes the holder identifiable. The output for each opinion is an aspect–opinion–holder triple with polarity.
The triples are combined across the corpus so that sentiment can be compared aspect by aspect, for example which features receive mostly positive and which mostly negative opinions. The summary depends on how well the earlier steps identified aspects, polarity and holders.
Common pitfalls
- Treating the whole document as one unit removes the purpose of the method, which is to separate sentiment by aspect.
- Poorly defined aspects lead to opinions being attached to the wrong feature or dropped, and the summaries then describe the wrong things.
- Ignoring the opinion holder can merge the views of several people who appear in the same text.
- Negation, contrast words, comparisons, sarcasm and domain-specific sentiment terms can flip or mislabel polarity; check these cases in a validation sample.
- Reporting aspect-level percentages based on few mentions without the counts overstates their reliability; report counts and treat small-count results as unstable.
Frequently asked questions
How is opinion mining different from sentiment analysis?
Document-level sentiment analysis assigns one polarity label to a whole text. Opinion mining first extracts the aspects being discussed, then determines the polarity toward each aspect and, where possible, the opinion holder, producing aspect–opinion–holder records instead of a single verdict.
Do I need a product feature list or ontology?
No, it is not required. A domain ontology or product feature list can help define which terms count as aspects in your domain. Without one, the aspects must be inferred from the text.
How much text do I need?
There is no established threshold. The more documents you have, the more mentions each aspect receives and the more stable the aspect-level summaries are. With few documents, each aspect may appear only a few times, so results should be reported with counts and read cautiously.
What does the output look like?
Rather than one label per document, the output is a set of aspect–opinion–holder triples: the feature discussed, the polarity expressed toward it, and the holder where identifiable. These triples can then be aggregated feature by feature across the corpus.
Related methods
Sources
Liu, B. (2012). Sentiment Analysis and Opinion Mining. Morgan & Claypool.
Open DOI referencePang, B. & Lee, L. (2008). Opinion Mining and Sentiment Analysis. Foundations and Trends in Information Retrieval, 2(1-2), 1-135.
Open DOI reference