Seedlabs
Source research

A Corpus of English-Hindi Code-Mixed Tweets for Sarcasm Detection

Sahil Swami, Khandelwal, Ankush, Vinay Kumar Singh, Syed Sarfaraz Akhtar, Manish Shrivastava · 2018 · 88 citationsRead the paper

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.

What the full text shows

Working prototype
  • Random Forest classifier achieved the highest overall performance for sarcasm detection. — 78.4 average F-score (10-fold cross validation using all features)
  • Word n-grams were the most effective single feature for the Random Forest classifier. — 76.7 F-score (Random Forest classifier)
  • Character n-grams performed best when paired with RBF Kernel SVM. — 73.1 F-score (RBF Kernel SVM)
  • Sarcasm indicative tokens were most effective for the Linear SVM. — 70.2 F-score (Linear SVM)
  • Inter-annotator agreement for the dataset was high. — 0.79 Cohen's Kappa (Manual annotation of tweets)
Setup
English-Hindi code-mixed tweets collected via Twitter Scraper API using hashtags (#sarcasm, #irony) and domain keywords (bollywood, cricket, politics).
How
The authors created a manually annotated English-Hindi code-mixed tweet corpus and developed a supervised classification baseline. They compared three machine learning models (Random Forest, RBF Kernel SVM, and Linear SVM) using features including n-grams, emoticons, and sarcasm-indicative tokens.
Limitations
Dataset lacks token-level normalization · Baseline does not utilize advanced features like word embeddings or POS tags

Summarized by Gemma 4 from the open-access full text · 18 Nov 2026. Read it