[Paper Review] A Corpus of English-Hindi Code-Mixed Tweets for Sarcasm Detection
This paper presents the first English-Hindi code-mixed tweet corpus annotated for sarcasm and token-level language tags, enabling sarcasm detection in multilingual social media text. Using a supervised random forest classifier with 10-fold cross-validation, the system achieves an average F-score of 78.4 on the dataset, establishing a baseline for sarcasm detection in code-mixed Indian languages.
Social media platforms like twitter and facebook have be- come two of the largest mediums used by people to express their views to- wards different topics. Generation of such large user data has made NLP tasks like sentiment analysis and opinion mining much more important. Using sarcasm in texts on social media has become a popular trend lately. Using sarcasm reverses the meaning and polarity of what is implied by the text which poses challenge for many NLP tasks. The task of sarcasm detection in text is gaining more and more importance for both commer- cial and security services. We present the first English-Hindi code-mixed dataset of tweets marked for presence of sarcasm and irony where each token is also annotated with a language tag. We present a baseline su- pervised classification system developed using the same dataset which achieves an average F-score of 78.4 after using random forest classifier and performing 10-fold cross validation.
Motivation & Objective
- To address the lack of annotated resources for sarcasm detection in English-Hindi code-mixed social media texts.
- To collect and manually annotate a large-scale corpus of tweets with both sarcasm and language-tagged token-level labels.
- To develop a baseline supervised classification system for sarcasm detection in code-mixed multilingual text.
- To evaluate the effectiveness of various linguistic features—n-grams, emoticons, sarcasm-indicative tokens—on sarcasm detection performance.
- To provide a publicly available dataset and model to support future research in code-mixed sarcasm detection and language identification.
Proposed method
- Collected tweets using Twitter Scraper API with hashtags #sarcasm and #irony, and keywords related to politics, cricket, and Bollywood.
- Manually annotated each tweet for sarcasm presence using 'YES' or 'NO' labels, achieving a Cohen’s Kappa of 0.79 for inter-annotator agreement.
- Tokenized tweets using whitespace and assigned language tags (English/Hindi) to each token, verified manually.
- Extracted four feature types: character n-grams (n=1–3, frequency ≥8), word n-grams (n=1–3, frequency ≥8), sarcasm-indicative tokens (score ≥0.6, frequency ≥5), and 27 predefined emoticons.
- Applied chi-square feature selection to reduce feature space to 500 dimensions for improved model efficiency.
- Trained and evaluated three classifiers—RBF kernel SVM, linear SVM, and random forest—using 10-fold cross-validation on the full dataset.
Experimental results
Research questions
- RQ1What is the performance of a supervised classification system on sarcasm detection in English-Hindi code-mixed tweets?
- RQ2How do different linguistic features (n-grams, emoticons, sarcasm-indicative tokens) contribute to sarcasm detection accuracy?
- RQ3Can a multilingual, code-mixed dataset improve the robustness of sarcasm detection models in low-resource language settings?
- RQ4What is the impact of feature selection on model performance in sarcasm detection tasks?
- RQ5How does the inclusion of both sarcastic and non-sarcastic tweets from diverse domains affect model generalization?
Key findings
- The random forest classifier achieved the highest average F-score of 78.4 on the dataset using 10-fold cross-validation.
- Word n-grams performed best with the random forest classifier, achieving an F-score of 76.7.
- Character n-grams yielded the best performance with RBF kernel SVM (73.1 F-score).
- Sarcasm-indicative tokens showed strong performance with linear SVM, achieving an F-score of 70.2.
- The combination of all features achieved an F-score of 76.5 with RBF kernel SVM, 78.4 with random forest, and 71.7 with linear SVM.
- The dataset demonstrates strong inter-annotator agreement (Cohen’s Kappa = 0.79), validating the reliability of the annotations.
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.