Fine-Grained Sentiment Analysis with Structural Features

Cäcilia Zirn, Mathias Niepert, Heiner Stuckenschmidt, Michael Strube

Abstract

Traditional sentiment analysis often operates at the document or sentence level, potentially obscuring nuanced opinions within complex text. This paper presents a framework for fine-grained sentiment analysis using discourse segments as the primary unit of study. By employing Markov Logic Networks (MLNs) to integrate sentiment lexicons with structural discourse features—specifically neighborhood and contrast relations—we demonstrate that contextual information significantly enhances classification accuracy. Our best-performing model achieves an accuracy of 69.02% on a multi-domain product review dataset, outperforming standard Support Vector Machine (SVM) baselines.

Introduction

Most contemporary sentiment analysis systems assign a single polarity label to an entire review or sentence. However, natural language frequently contains mixed sentiments within a single sentence. For instance, a user might praise a product's design while criticizing its functionality. Coarse-grained analysis often fails to capture these distinctions, leading to "neutral" or inaccurate classifications.

The fundamental challenge in fine-grained analysis is that individual sub-sentence segments often lack sufficient lexical density for independent classification. To address this, we propose leveraging the structural relationships between segments.

Example of discourse segments and sentiment relations.

Methodology

Our approach integrates three distinct information sources within a unified statistical relational learning framework:

  1. Sentiment Lexicons: We utilize SentiWordNet, a Turney-based adjective list, and a domain-specific unigram lexicon to establish initial prior polarity scores for individual words.
  2. Neighborhood Relations: We incorporate the assumption that adjacent segments are likely to share the same sentiment polarity unless explicitly signaled otherwise.
  3. Discourse Relations: Using the HILDA discourse parser, we identify rhetorical structures, specifically focusing on "Contrast" relations (e.g., triggered by "but") versus "No Contrast" relations.

These features are combined using Markov Logic Networks (MLNs). MLNs allow for the definition of first-order logic rules with associated weights, enabling the system to model the probabilistic nature of discourse while maintaining logical consistency. For example, a rule might state that if segment A is positive and lacks a contrast relation with segment B, then segment B is likely positive.

Experimental Setup

We evaluated our framework using a subset of the Multi-Domain Sentiment Dataset, focusing on Amazon reviews from three categories: Cell Phones & Service, Gourmet Food, and Kitchen & Housewares. A "Gold Standard" dataset was created by having three independent annotators label over 7,000 segments as either positive or negative.

Results and Discussion

We compared our MLN-based models against a majority baseline and a standard SVM classifier. The results, summarized in the table below, highlight the impact of structural features.

Performance comparison of various sentiment analysis models.

The MLN_neighborhood model, which incorporates simple adjacency relations, achieved the highest overall accuracy of 69.02%. This represents a substantial improvement over the SVM baseline (56.66%) and the polarity-only MLN (55.67%).

Interestingly, the MLN_contrast model, which explicitly models discourse relations, performed lower than the neighborhood model at 64.79%. This discrepancy may stem from errors in the automatic discourse parser or the observation that "Contrast" relations do not always necessitate a polarity flip. Our corpus study revealed that the word "but" only signaled a change in sentiment in 40% of instances.

Conclusion

This research demonstrates that structural context is vital for fine-grained sentiment analysis. By modeling the relationships between discourse segments using Markov Logic Networks, we can effectively mitigate the ambiguity inherent in short text snippets. Future work will explore the inclusion of neutral sentiment labels and a broader range of discourse relations beyond contrast.

Summary updated

BibTeX
@inproceedings{zirn2011fine,
  author = {Cäcilia Zirn and Mathias Niepert and Heiner Stuckenschmidt and Michael Strube},
  title = {{Fine-Grained Sentiment Analysis with Structural Features}},
  booktitle = {IJCNLP},
  year = {2011},
}
Figure