Unsupervised Sentiment Analysis for Code-mixed Data

Siddharth Yadav, Tanmoy ChakrabortyarXiv 2020

Introduction

Natural Language Processing (NLP) systems are predominantly designed for monolingual text. However, in multilingual societies and on social media, "code-mixing"—the practice of switching between two or more languages within a single conversation—is often the default mode of communication. Analyzing such data is challenging due to data scarcity, linguistic complexity, and the informal nature of social media text. This research proposes an unsupervised framework for sentiment analysis on code-mixed data by leveraging crosslingual and multilingual embeddings to transfer knowledge from high-resource monolingual datasets.

Methodology

The study explores three main categories of embedding techniques to create a shared representation space:

  1. Mapping-Based Models (MUSE): Aligning English and Spanish word embeddings through supervised (dictionary-based) or unsupervised (adversarial) learning.
  2. Pseudo-Multilingual Models:
    • MultiBPEmd: A shared subword vocabulary trained on 275 languages.
  3. Custom-fastText: A model trained on a 160-million-word corpus including English, Spanish, and code-mixed tweets. Its use of character n-grams provides resilience against misspellings.
  4. Sentence-Level Models (LASER): Utilizing Language-Agnostic SEntence Representations to map entire sentences into a single vector space regardless of the language.

The training follows a curriculum where models are first trained on sentiment tasks using monolingual data and then evaluated on code-mixed data in zero-shot or unsupervised settings.

Experimental Setup

The evaluation utilized monolingual English (SemEval 2017, Sentistrength) and Spanish (TASS-2017, TASS-2014) datasets. The code-mixed benchmark consisted of an English-Spanish dataset provided by Vilares et al. (2016), containing 2,449 training and 613 test instances.

Results and Discussion

The proposed methods demonstrate significant improvements over previous state-of-the-art (SOTA) results. As shown in Table 1, the Custom-fastText model achieved a supervised F1-score of 67.71, surpassing the previous best of 64.60.

Table 1: Comparison of F1-scores across different models and embedding techniques.

Key findings include:

  • Subword Importance: Subword-based methods like fastText are essential for handling the high out-of-vocabulary rates in informal code-mixed text.
  • Zero-Shot Efficacy: The LASER model performed remarkably well in zero-shot settings (F1 of 61.72), suggesting that sentence-level embeddings effectively capture sentiment intent across language boundaries.
  • Unsupervised Success: Even without labeled code-mixed data during training, the unsupervised fastText model reached an F1 of 58.40, proving the viability of knowledge transfer from monolingual sources.

Conclusion

This work establishes that crosslingual embeddings can effectively bridge the gap between high-resource monolingual data and low-resource code-mixed domains. While the results are promising, future research should focus on capturing the specific syntactic features of code-switching points and expanding the methodology to more diverse language pairs.

Summary updated

BibTeX
@misc{yadav2020unsupervised,
  author = {Siddharth Yadav and Tanmoy Chakraborty},
  title = {{Unsupervised Sentiment Analysis for Code-mixed Data}},
  year = {2020},
  eprint = {2001.11384},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.11384},
}
Figure