[Paper Review] An English-Hindi Code-Mixed Corpus: Stance Annotation and Baseline System
This paper presents the first English-Hindi code-mixed Twitter corpus annotated for stance toward India's 2016 Demonetisation policy, with 3,545 manually labeled tweets. It introduces a baseline stance detection system using character n-grams, word n-grams, and stance-indicative tokens, achieving 58.7% accuracy via 10-fold cross-validation with an RBF kernel SVM, marking a foundational resource for code-mixed stance detection in low-resource multilingual settings.
Social media has become one of the main channels for peo- ple to communicate and share their views with the society. We can often detect from these views whether the person is in favor, against or neu- tral towards a given topic. These opinions from social media are very useful for various companies. We present a new dataset that consists of 3545 English-Hindi code-mixed tweets with opinion towards Demoneti- sation that was implemented in India in 2016 which was followed by a large countrywide debate. We present a baseline supervised classification system for stance detection developed using the same dataset that uses various machine learning techniques to achieve an accuracy of 58.7% on 10-fold cross validation.
Motivation & Objective
- To create a large-scale, manually annotated English-Hindi code-mixed corpus for stance detection on a high-impact social media event.
- To address the lack of opinion mining resources for code-mixed Indian languages, particularly English-Hindi.
- To develop and evaluate a baseline stance detection system on this new corpus using multiple machine learning techniques.
- To enable future research in code-mixed NLP, including language identification and multilingual stance detection.
- To provide open-source access to the dataset and baseline model for reproducibility and further development.
Proposed method
- Collected 3,545 English-Hindi code-mixed tweets using Twitter Scraper API with keywords 'notebandi' and 'demonetisation' over a 6-month period post-2016.
- Annotated each tweet for stance—'FAVOR', 'AGAINST', or 'NONE'—using native Hindi-English bilinguals, achieving a Cohen’s Kappa of 0.82.
- Performed token-level language annotation by manually tagging each token as English or Hindi, followed by manual review for error correction.
- Extracted three feature types: character n-grams (n=1 to 3, frequency ≥8), word n-grams (n=1 to 5, frequency ≥10), and stance-indicative tokens (score ≥0.6, frequency ≥5).
- Applied chi-squared feature selection to reduce feature space to 500 most relevant features per class.
- Evaluated three classifiers—RBF kernel SVM, Random Forest, and Linear SVM—using 10-fold cross-validation on the full feature set.
Experimental results
Research questions
- RQ1What is the performance of baseline machine learning models in detecting stance in English-Hindi code-mixed social media text?
- RQ2How do different feature types (character n-grams, word n-grams, stance-indicative tokens) contribute individually and collectively to stance detection accuracy?
- RQ3Can a supervised stance detection system be effectively trained on a newly created, manually annotated code-mixed corpus for Indian social media discourse?
- RQ4How does inter-annotator agreement reflect the reliability of stance labeling in code-mixed multilingual text?
- RQ5What is the potential of this corpus for advancing code-mixed NLP tasks such as language identification and sentiment analysis?
Key findings
- The RBF kernel SVM achieved the highest accuracy of 58.7% when all three feature types were used in combination.
- All three individual feature types—character n-grams, word n-grams, and stance-indicative tokens—contributed nearly equally, with accuracies ranging from 54.6% to 54.8%.
- The Random Forest classifier achieved 54.7% accuracy with all features, while the Linear SVM reached 56.6% under the same conditions.
- The inter-annotator agreement for stance annotation was substantial at Cohen’s Kappa = 0.82, indicating strong labeling consistency.
- The dataset and baseline system are publicly available on GitHub, enabling reproducibility and further development in code-mixed NLP.
- The study establishes a foundational benchmark for stance detection in Indian code-mixed social media, particularly for low-resource language pairs like English-Hindi.
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.