Skip to main content
QUICK REVIEW

[Paper Review] CMSAOne@Dravidian-CodeMix-FIRE2020: A Meta Embedding and Transformer model for Code-Mixed Sentiment Analysis on Social Media Text

Suman Dowlagar, Radhika Mamidi|arXiv (Cornell University)|Jan 22, 2021
Natural Language Processing TechniquesComputer Science28 references11 citations
TL;DR

This paper proposes a meta-embedding approach combining fastText, ELMo, TF-IDF, and a Transformer model with GRU for sentiment analysis on Dravidian code-mixed social media text. The method achieves F1 scores of 0.58 on Tamil and 0.66 on Malayalam code-mixed datasets, demonstrating improved performance through enriched contextual representations from multiple embedding sources.

ABSTRACT

Code-mixing(CM) is a frequently observed phenomenon that uses multiple languages in an utterance or sentence. CM is mostly practiced on various social media platforms and in informal conversations. Sentiment analysis (SA) is a fundamental step in NLP and is well studied in the monolingual text. Code-mixing adds a challenge to sentiment analysis due to its non-standard representations. This paper proposes a meta embedding with a transformer method for sentiment analysis on the Dravidian code-mixed dataset. In our method, we used meta embeddings to capture rich text representations. We used the proposed method for the Task: "Sentiment Analysis for Dravidian Languages in Code-Mixed Text", and it achieved an F1 score of $0.58$ and $0.66$ for the given Dravidian code mixed data sets. The code is provided in the Github https://github.com/suman101112/fire-2020-Dravidian-CodeMix.

Motivation & Objective

  • To address the challenge of sentiment analysis in Dravidian code-mixed social media text, where linguistic mixing and non-standard spellings complicate NLP tasks.
  • To improve sentiment classification performance by integrating multiple embedding sources—fastText, ELMo, and TF-IDF—into a meta-embedding framework.
  • To leverage the contextual understanding of Transformers and sequential modeling via GRU for enhanced representation learning on code-mixed sequences.
  • To evaluate the model on the FIRE 2020 Dravidian-CodeMix shared task, focusing on Tamil and Malayalam YouTube comment sentiment classification.
  • To identify limitations in detecting sarcasm and irony in negative sentiment, especially when such expressions mimic positive sentiment.

Proposed method

  • A SentencePiece tokenizer with byte-pair encoding (BPE) is used to handle non-standard spellings and subword-level tokenization in code-mixed text.
  • FastText embeddings are trained on the code-mixed corpus with a 300-dimensional vector space, capturing subword-level morphological patterns.
  • ELMo embeddings are obtained from a pre-trained TensorFlow Hub model with a 1024-dimensional representation, providing deep contextual word representations.
  • TF-IDF features are computed at the sentence level to capture term frequency and inverse document frequency, contributing to the meta-embedding.
  • The representations from fastText, ELMo, and TF-IDF are concatenated to form meta-embeddings, which are then fed into a Transformer encoder with 1 layer and 2048-point feed-forward network.
  • A GRU layer processes the encoded representations sequentially, and the final hidden state is used as the sentence-level representation for classification via a feed-forward network.

Experimental results

Research questions

  • RQ1How effective is a meta-embedding approach combining fastText, ELMo, and TF-IDF in improving sentiment classification for Dravidian code-mixed text?
  • RQ2Can a Transformer-based architecture with GRU integration outperform baseline models like fine-tuned BERT on code-mixed sentiment analysis tasks?
  • RQ3What are the main challenges in classifying sarcasm and irony in code-mixed negative sentiment, and how do they affect model performance?
  • RQ4Why do models struggle to distinguish 'mixed_feelings' from 'positive' sentiments in code-mixed data, and what data characteristics contribute to this?
  • RQ5To what extent do non-language comments (e.g., not_Tamil, not_Malayalam) benefit from high TF-IDF scores in improving classification accuracy?

Key findings

  • The proposed model achieved a weighted F1 score of 0.58 on the Tamil code-mixed dataset and 0.66 on the Malayalam dataset, outperforming baseline models including fine-tuned BERT.
  • The inclusion of TF-IDF features in the meta-embedding improved performance from 0.57 to 0.58 on Tamil and from 0.47 to 0.66 on Malayalam, indicating its value in capturing non-linguistic signal.
  • The model performed best on classifying positive and non-language comments, which were easier to distinguish due to high-frequency positive lexicons and high TF-IDF scores for non-language terms.
  • The model struggled with sarcasm and irony in negative sentiment, often misclassifying such sentences as positive due to lexical similarity with positive expressions.
  • The performance gap between Tamil and Malayalam datasets suggests that data imbalance and corpus characteristics significantly affect model generalization.
  • The integration of ELMo and TF-IDF into the meta-embedding framework enhanced representation richness, particularly for low-resource code-mixed language pairs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.