Learning Latent Sentiment Scopes for Entity-Level Sentiment Analysis

Hao Li, Wei Lu

Introduction

Entity-level (or targeted) sentiment analysis aims to identify specific entities within a sentence and determine the sentiment directed at them. Traditional approaches often rely on fixed-window sequence labeling, which suffers from two primary flaws: long-distance dependencies, where sentiment-bearing words are far from the entity, and ambiguity, where a sentiment word is physically closer to one entity but actually describes another.

This paper introduces the concept of latent sentiment scopes—variable-length windows of text that determine the sentiment of a specific entity. By explicitly modeling these unobserved scopes within a joint graphical model, the researchers significantly improved the accuracy of targeted sentiment analysis, outperforming traditional fixed-window sequence labeling and early neural network approaches.

Methodology

The Sentiment Scope Model

The authors propose a model that treats sentiment scopes as latent variables. Instead of a simple linear chain, they construct a graph where each word position can be one of nine types of nodes:

  • B (Before): The word is in the scope but appears before or at the start of the entity.
  • E (Entity): The word is part of the named entity.
  • A (After): The word is in the scope but appears after or at the end of the entity.

These three types are replicated for three polarities: Positive (+), Negative (-), and Neutral (o). By connecting these nodes, the model forms a "sentiment scope graph."

A sentiment scope graph illustrating two possible latent sentiment scopes for a given sentence.

Because the boundaries of these scopes are not explicitly labeled in training data, the model uses a log-linear formulation with latent variables to learn them. This allows the model to decide which entity "owns" each sentiment-bearing word, effectively partitioning the sentence.

Semi-Markov Variant and Joint Learning

A semi-Markov version of the model was also introduced to allow the treatment of multi-word entities (e.g., "Internet Marketing Agency") as single units. This captures non-local features more effectively than standard CRFs. Furthermore, the model is "joint," learning to recognize entity boundaries and sentiment simultaneously, which mitigates the error propagation common in pipeline approaches.

Evaluation and Results

The model was evaluated on Twitter datasets in English (2,350 tweets) and Spanish (7,105 tweets).

Key Results

The "Sentiment Scope" (SS) model consistently outperformed several strong baselines. As shown in the results table, the inclusion of word embeddings pre-trained on Twitter data provided a significant performance boost.

Performance comparison of the Sentiment Scope (SS) model against various baselines in English and Spanish.

In English, the SS model with word embeddings achieved a sentiment analysis F1 score of 43.55%, compared to 39.27% for the pipeline baseline. Similar gains were observed in Spanish, with the SS model reaching 44.13% F1.

Discussion and Insights

The research highlights several key advantages of the latent scope approach:

  • Unbounded Scopes: Unlike fixed-window models, scopes can span the entire sentence if necessary.
  • Latent vs. Fixed: Testing a version with "fixed scopes" (splitting the distance between entities exactly in half) resulted in much lower performance, proving that the model successfully learns to "find" relevant words rather than just relying on proximity.
  • Joint Modeling Synergy: Predicting entities and sentiment together allows sentiment-bearing words to serve as clues for identifying entity boundaries.

Limitations

The current model assumes that scopes do not overlap and that every word belongs to exactly one scope. Future work could explore handling overlapping scopes or incorporating dependency trees to better manage complex grammatical structures. Additionally, while the semi-Markov variant is more effective, it carries a higher computational complexity ($O(nLT^2)$), though this remains manageable for short texts like tweets.

Summary updated

BibTeX
@inproceedings{li2017learning,
  author = {Hao Li and Wei Lu},
  title = {{Learning Latent Sentiment Scopes for Entity-Level Sentiment Analysis}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11016},
}
Figure