[Paper Review] Towards Sub-Word Level Compositions for Sentiment Analysis of Hindi-English Code Mixed Text
This paper proposes a Subword-LSTM model for sentiment analysis in Hindi-English code-mixed text, leveraging sub-word level representations to capture morphemic sentiment cues in noisy, misspelled social media text. The approach achieves 69.7% accuracy and 0.658 F1-score on a newly created Hi-En code-mixed dataset, outperforming traditional methods by 4-5% and existing systems by 18%.
Sentiment analysis (SA) using code-mixed data from social media has several applications in opinion mining ranging from customer satisfaction to social campaign analysis in multilingual societies. Advances in this area are impeded by the lack of a suitable annotated dataset. We introduce a Hindi-English (Hi-En) code-mixed dataset for sentiment analysis and perform empirical analysis comparing the suitability and performance of various state-of-the-art SA methods in social media. In this paper, we introduce learning sub-word level representations in LSTM (Subword-LSTM) architecture instead of character-level or word-level representations. This linguistic prior in our architecture enables us to learn the information about sentiment value of important morphemes. This also seems to work well in highly noisy text containing misspellings as shown in our experiments which is demonstrated in morpheme-level feature maps learned by our model. Also, we hypothesize that encoding this linguistic prior in the Subword-LSTM architecture leads to the superior performance. Our system attains accuracy 4-5% greater than traditional approaches on our dataset, and also outperforms the available system for sentiment analysis in Hi-En code-mixed text by 18%.
Motivation & Objective
- Address the lack of annotated datasets for sentiment analysis in Hindi-English code-mixed social media text.
- Overcome challenges posed by spelling variations, morphological complexity, and noise in code-mixed text.
- Improve sentiment classification performance by encoding linguistic priors through sub-word level representations in LSTMs.
- Demonstrate that sub-word features outperform character-level representations in capturing sentiment-relevant morphemes.
- Validate the hypothesis that architectural integration of linguistic priors enhances model performance on noisy, low-resource code-mixed data.
Proposed method
- Propose a Subword-LSTM architecture that learns representations at the sub-word level instead of character or word level.
- Use byte-pair encoding (BPE) or similar sub-word tokenization to split words into meaningful morphemic units.
- Train the model end-to-end using Adam optimizer with batch size 128 on a newly annotated Hi-En code-mixed dataset.
- Visualize convolutional filters in the network to analyze how sentiment-relevant sub-word patterns are learned.
- Compare performance against character-level LSTMs, traditional classifiers (SVM, NB), and lexicon-based methods on the same dataset.
- Perform cross-validation on SemEval-2013 dataset to validate generalizability of the sub-word approach.
Experimental results
Research questions
- RQ1Can sub-word level representations improve sentiment classification in noisy, code-mixed Hindi-English text compared to character-level or word-level representations?
- RQ2How does the integration of linguistic priors—such as morphemic structure—into the RNN architecture affect performance on low-resource, noisy code-mixed data?
- RQ3To what extent do spelling variations and morphological distortions in social media text hinder traditional sentiment analysis methods?
- RQ4Does the Subword-LSTM model generalize well to other code-mixed or noisy text settings, as validated on SemEval-2013?
- RQ5Can visualizations of learned filters confirm that the model captures sentiment-relevant sub-word patterns despite misspellings?
Key findings
- The Subword-LSTM model achieves 69.7% accuracy and 0.658 F1-score on the proposed Hi-En code-mixed dataset, outperforming traditional methods by 4-5 percentage points.
- The model improves performance by 18% over the best available system for sentiment analysis in Hi-En code-mixed text.
- Subword-level representations significantly outperform character-level LSTMs, which achieved only 59.8% accuracy and 0.511 F1-score.
- Multinomial Naive Bayes with unigram features outperforms SVM and TF-IDF baselines, indicating that sparsity reduction improves results on this sparse dataset.
- Lexicon-based methods fail due to misspellings, as incorrect transliterations prevent accurate sentiment lookup.
- Visualizations confirm that the model learns to detect sentiment-relevant sub-word segments even in heavily misspelled words, such as 'btwn' or 'cooolll'.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.