Spanish Twitter Messages Polarized through the Lens of an English System

Marlies Santos Deas, Or Biran, Kathleen R. McKeown, Sara RosenthalTASS@SEPLN 2015

Abstract

This paper details the adaptation of a high-performing English sentiment analysis system to the Spanish language for the TASS 2015 competition. By substituting English-specific lexical resources with Spanish equivalents and utilizing automated translation for social media tokens, the researchers demonstrate that cross-lingual adaptation is a viable and competitive alternative to developing language-specific systems from scratch.

Introduction

Natural Language Processing (NLP) research is predominantly focused on English, leading to a significant "resource gap" for other languages. Building sentiment analysis systems for non-English languages typically requires extensive manual effort to curate specialized lexicons and features. This study investigates whether a system optimized for English can be effectively "ported" to Spanish with minimal engineering effort, specifically targeting the informal and noisy domain of Twitter.

Methodology

The core of the system is a Logistic Regression classifier originally designed for SemEval Twitter sentiment challenges. The adaptation process focused on swapping English linguistic "fuel" for Spanish counterparts rather than redesigning the underlying classification engine.

Resource Adaptation

Key English dictionaries were replaced with Spanish versions, including the Spanish Dictionary of Affect in Language (DAL) and the FreeLing standard dictionary. For social media-specific elements such as emoticons, Google Translate was employed to generate Spanish equivalent lists. The Spanish version of the Stanford NLP library provided part-of-speech (POS) tagging and syntactic parsing.

Comparison of English and Spanish linguistic resources used for adaptation.

Classification Strategies

Two primary approaches were evaluated:

  1. Joint Models: A single-step classification into categories such as Positive (P), Negative (N), Neutral (NEU), or None.
  2. Composite Models: A two-step pipeline that first identifies subjectivity and subsequently classifies the polarity of subjective tweets.

The system was tested on the TASS 2015 dataset, comprising over 68,000 Spanish tweets, across fine-grained (5-label/6-class) and coarse (3-label/4-class) tasks.

Results and Discussion

The adapted system achieved competitive performance metrics. On the full test set for the 3-label task, it reached an accuracy of 0.597 and an F1-score of 0.497. For the 5-label task, it achieved an accuracy of 0.495 and an F1-score of 0.416.

Performance metrics (F1-scores) for 5-label and 3-label classification tasks across different test corpora and model variants.

Key Insights

  • Universality of Social Media Tokens: Emoticons and slang proved to be the most discriminative features across languages, suggesting high portability for social media-specific NLP features.
  • Morphological Complexity: The Spanish dictionary required significantly more entries (over 550,000) compared to the English version (approximately 98,000) to account for high inflection, highlighting the challenges of Romance language adaptation.
  • The Neutrality Challenge: The system consistently struggled with "Neutral" tweets, which are often characterized by a lack of strong sentiment markers rather than the presence of specific neutral indicators.
  • Model Architecture: Joint models generally outperformed composite pipelines on the full dataset, as the latter suffered from error propagation between the subjectivity and polarity stages.

Conclusion

While the system ranked in the middle of the TASS 2015 field (11th of 16 for the 5-label task), the results validate the "painless" adaptation approach. Future work will focus on integrating more robust resources like MultiWordNet and exploring automated resource generation for lower-resource languages.

Summary updated

BibTeX
@inproceedings{deas2015spanish,
  author = {Marlies Santos Deas and Or Biran and Kathleen R. McKeown and Sara Rosenthal},
  title = {{Spanish Twitter Messages Polarized through the Lens of an English System}},
  booktitle = {TASS@SEPLN},
  year = {2015},
}
Figure