# Thumbs Up or Thumbs Down? Semantic Orientation Applied to Unsupervised Classification of Reviews

Semantic orientation of phrases can classify reviews as thumbs up or down without labels

Peter D. Turney · arXiv · 2002-12-11

- **Problem** Search engines cannot report how many reviews recommend an item without a way to classify each review. Labelled training reviews are needed by most classifiers, and a single adjective can carry opposite meanings in different domains.
- **Method** The authors average the semantic orientation of adjective and adverb phrases across each review. Each phrase is scored by its pointwise mutual information with excellent minus that with poor, using hit counts from AltaVista.
- **Results** The method reaches 74% accuracy on 410 Epinions reviews, compared with 59% for guessing the majority class.

## Summary statistics for review sites

A search for Akumal travel review returns about 5,000 matches, and the list alone doesn't say how many recommend the destination. A classifier that sorts each review as thumbs up or thumbs down would let a search engine report those shares directly. The authors want this classifier to work without labelled training reviews, so it has to read the review text alone.

The difficulty is that a single adjective signals opinion without always showing its direction. For example, unpredictable steering reads as a complaint about a car, while unpredictable plot can praise a movie. So the algorithm has to read each adjective together with the word beside it.

## Pulling two-word phrases from tagged text

The authors run a part-of-speech tagger over each review, then keep consecutive word pairs whose tags match one of five patterns. Most patterns start with an adjective or an adverb, and the fourth starts with a noun followed by an adjective. In several patterns the word after the pair can't be a noun, which keeps the extracted pair from sitting inside a longer noun phrase.

Proper nouns are excluded so that item names can't shift the classification. For example, low fees is tagged JJ NNS and is extracted as a phrase.

## Scoring each phrase with PMI-IR

The core idea is to score a phrase by whether it co-occurs more with excellent or with poor. The measure underneath is pointwise mutual information, which compares how often two words co-occur with how often they would co-occur if they were independent. Taking the log of that ratio gives an amount of information, which is positive when the words co-occur more than independence predicts.

Semantic orientation is the mutual information with excellent minus the mutual information with poor. \\\[\\mathrm{SO}(\\mathit{phrase}) = \\mathrm{PMI}(\\mathit{phrase}, \\mathit{excellent}) - \\mathrm{PMI}(\\mathit{phrase}, \\mathit{poor})\\\] The reference words were chosen because, on a five-star scale, one star is commonly read as poor and five stars as excellent.

Hit counts from AltaVista stand in for the probabilities, and the NEAR operator limits matches to two words within ten words of each other, in either order. Substituting hit counts gives a log-odds form of the estimate. \\\[\\mathrm{SO}(\\mathit{phrase}) = \\log\_2 \\frac{\\mathrm{hits}(\\mathit{phrase}\\ \\mathrm{NEAR}\\ \\mathit{excellent})\\, \\mathrm{hits}(\\mathit{poor})}{\\mathrm{hits}(\\mathit{phrase}\\ \\mathrm{NEAR}\\ \\mathit{poor})\\, \\mathrm{hits}(\\mathit{excellent})}\\\] A phrase that appears near excellent more often than near poor gets a positive value.

To avoid division by zero, the authors add 0.01 to the hits, and they skip a phrase when both NEAR counts are below four. The authors chose these two constants arbitrarily. Every query also adds AND (NOT host:epinions), so the Epinions site is kept out of the counts. The tables use the natural logarithm, which only rescales the values, and the authors say this makes no difference to the algorithm.

The third step averages the orientations of a review's phrases and labels the review recommended when that average is positive. In Table 2, a recommended review averages 0.322, while in Table 3 a not recommended review averages -1.218.

## Accuracy against the author labels

The test set is 410 Epinions reviews from four domains, and each review was written by a different author. Of these, 240 are recommended and 170 are not, so guessing the majority class gives 59%. The labels are the classes the review authors gave.

Across all 410 reviews the classifier scored 74.39%, compared to the 59% majority baseline. The abstract rounds this to 74%. The gain over the majority baseline is the main evidence that the average orientation carries real signal.

Automobile reviews scored 84.00%, and movie reviews scored 65.83%, which are the highest and lowest domain results. Banks scored 80.00% and travel destinations scored 70.53%. Within the travel domain, Cancun scored 64.41% while Puerto Vallarta scored 80.56%.

The average semantic orientation correlates with the star ratings at 0.5174 over all reviews. Domain correlations range from 0.1447 for Puerto Vallarta to 0.6423 for Bank of America, so the link to star ratings varies by domain. The authors read the overall figure as a strong positive correlation.

## Why movie reviews are the hardest case

Movie errors lean one way: the classifier tends to label recommended reviews as not recommended. In the confusion matrix, 21.67% of all movie reviews have a negative average orientation yet are recommended, while only 12.50% have a positive average and are not recommended.

The authors hypothesise that a good movie often contains unpleasant scenes, which pull down the average orientation of a recommended review. Adding a constant to the movie averages to correct this bias did not improve accuracy. The authors read this as evidence that negative reviews also mention pleasant scenes.

In one recommended review of The Matrix, the phrase more evil scored -4.384, yet an evil character doesn't make a bad movie. The example shows that a correctly signed phrase can still mislead the average.

The authors separate the elements of a movie, such as its events and actors, from the movie as a gestalt. They offer the same reasoning for the lower Cancun accuracy, since good beaches don't guarantee a good vacation. Automotive parts and banking services, by contrast, usually add up to a good car or bank. No experiment tests this interpretation directly.

## Checking PMI-IR on synonyms

The authors first test PMI-IR on 80 TOEFL synonym questions. PMI-IR scores 74%, compared to 64% for Latent Semantic Analysis on the same questions. This supports the estimator as a word-association measure, not the review classification results.

The authors use AltaVista's NEAR operator because earlier work found NEAR performs better than AND for this purpose. That comparison is cited from earlier work and isn't rerun on the review data.

## Comparing with adjective-orientation learning

Hatzivassiloglou and McKeown infer adjective orientation from constraints on conjunctions, such as which adjectives 'and' or 'but' can join. Their supervised approach reports accuracies from 78% to 92%, depending on how much training data is available. It is designed for isolated adjectives, so it doesn't readily extend to phrases.

The authors note their algorithm could replace PMI-IR in the second step of the classifier. PMI-IR is simpler to implement and also handles adverbs and phrases. A direct empirical comparison is left for future work.

That system depends on a hand-built lexicon that must be rebuilt for each domain.

## Limitations

Each phrase needs about two queries on average after caching, and the 410 reviews yielded 10,658 phrases. With a five-second delay between queries, the corpus took roughly 106,580 seconds, about 30 hours. The authors expect memory growth to bring processing time under one second per review in about ten years.

The authors call Equation (3) a very simple estimator of semantic orientation. They suggest a statistical significance test on each estimated orientation as one possible improvement.

The method uses no other features, and the authors suggest combining average orientation with word-presence features in a supervised system. They plan ordinal classification of five-star ratings using the algorithm of Frank and Hall.

Experiments cover only Epinions reviews from four domains, with labels taken from the review authors. Whether tagging sentences as discussing elements or wholes would help is an open question.

## Paper info

- **Authors**: Peter D. Turney
- **Venue**: arXiv · Preprint
- **First published**: 2002-12-11
- **Added**: 2026-11-12
- **Updated**: 2002-12-11
- **Version**: v1
- **arXiv**: cs/0212032
- **Category**: cs.LG · cs.CL · cs.IR
- **Original paper terms**: [Check in the original ↗](https://arxiv.org/abs/cs/0212032v1)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/cs/0212032v1) · [PDF ↗](https://arxiv.org/pdf/cs/0212032v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Peter D. Turney (2002). Thumbs Up or Thumbs Down? Semantic Orientation Applied to Unsupervised Classification of Reviews. arXiv:cs/0212032v1. https://arxiv.org/abs/cs/0212032v1

**BibTeX**

```
@misc{turney2002thumbs,
  title = {{Thumbs Up or Thumbs Down? Semantic Orientation Applied to Unsupervised Classification of Reviews}},
  author = {Peter D. Turney},
  year = {2002},
  eprint = {cs/0212032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cs/0212032v1}
}
```

## Related papers

- [From Frequency to Meaning: Vector Space Models of Semantics](https://refivu.com/en/papers/dc10591f-f090-4830-a33f-924cbfeba0ff-from-frequency-to-meaning-vector-space-models-of.md)

## Other paper commentary

- [A large annotated corpus for learning natural language inference](https://refivu.com/en/papers/7e4b0424-7bbb-49b5-a1e2-69bf72d8d16b-a-large-annotated-corpus-for-learning-natural-language.md)
- [Recent Trends in Deep Learning Based Natural Language Processing](https://refivu.com/en/papers/6cdbf953-5aaa-4de2-9e22-528902a11655-recent-trends-in-deep-learning-based-natural-language.md)
- [A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference](https://refivu.com/en/papers/6a9a87c0-1034-4d6f-8def-43a3279e4725-a-broad-coverage-challenge-corpus-for-sentence-understanding.md)
- [Character-level Convolutional Networks for Text Classification](https://refivu.com/en/papers/7b769c87-9db2-455d-a744-b9548d185e67-character-level-convolutional-networks-for-text.md)
- [Bidirectional LSTM-CRF Models for Sequence Tagging](https://refivu.com/en/papers/7f421939-0d02-43b3-b25f-86a13896fd18-bidirectional-lstm-crf-models-for-sequence-tagging.md)
- [VQA: Visual Question Answering](https://refivu.com/en/papers/52c3e601-1542-4d3e-bc47-1d51fb1b7a5e-vqa-visual-question-answering.md)
- [GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models](https://refivu.com/en/papers/85a30c3b-b6e0-4eaf-8fb4-fe6a473a1c05-glide-towards-photorealistic-image-generation-and-editing.md)
- [A Convolutional Neural Network for Modelling Sentences](https://refivu.com/en/papers/09b470f4-ff62-40ab-9355-2f9413d8271f-a-convolutional-neural-network-for-modelling-sentences.md)
- [Learning to Prompt for Vision-Language Models](https://refivu.com/en/papers/c492cb20-7c19-4275-b139-f97eecec7359-learning-to-prompt-for-vision-language-models.md)
- [Soft Actor-Critic Algorithms and Applications](https://refivu.com/en/papers/27323517-0997-4493-a852-d624d86c70dd-soft-actor-critic-algorithms-and-applications.md)
- [Model Cards for Model Reporting](https://refivu.com/en/papers/9ad193b1-a348-4853-9835-2faeecfe0dc1-model-cards-for-model-reporting.md)
- [Segment Anything in Medical Images](https://refivu.com/en/papers/505368c7-a7cf-4cc6-b939-a8043e6cf7cd-segment-anything-in-medical-images.md)

## Terms in this paper

- [Epinions](https://refivu.com/en/terms/42c2e665658e-epinions)
- [pointwise mutual information](https://refivu.com/en/terms/1ba0aab5fb91-pointwise-mutual-information)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/6e4064ce-2095-4d56-8950-560f38e43e69-thumbs-up-or-thumbs-down-semantic-orientation-applied)
