Abstract
This paper addresses the challenges of Part-of-Speech (POS) tagging for English-Hindi code-mixed social media text, where Hindi is frequently transliterated into Roman script. The authors introduce a new annotated corpus of Facebook comments and evaluate a pipelined approach involving language identification, back-transliteration, and language-specific tagging. Results indicate that error propagation from language identification and transliteration significantly impacts overall accuracy, highlighting the need for joint modeling in code-mixed NLP tasks.
Introduction
Most Natural Language Processing (NLP) tools are designed for standard, monolingual text. However, social media users frequently engage in Code-Mixing (CM)—embedding words or phrases from one language into another. For English-Hindi (En-Hi) speakers, this is further complicated by transliteration: users often write Hindi using Roman characters (e.g., "hai" instead of "है").
This creates two primary challenges:
- Language Ambiguity: Words like "main" can be an English adjective or a Hindi pronoun ("I").
- Spelling Noise: Non-standard spellings and slang common on social media break traditional dictionary-based tools.
The authors aim to formalize these challenges and build a pipeline to automatically assign POS tags to this complex data.
Methods
The researchers implemented a three-stage pipelined approach:
- Language Identification: A word-level logistic regression classifier labels tokens as English (En), Hindi (Hi), or Other (Ot), incorporating code-switching probabilities.
- Normalization & Back-Transliteration: Hindi words in Roman script are converted to Devanagari to leverage existing Hindi NLP tools. English words are normalized to handle social media variations.
- POS Tagging: Text is split into language-specific chunks. English chunks use a specialized Twitter POS tagger, while Hindi chunks use a CRF-based tagger. Outputs are mapped to a Universal POS tagset (12 tags).
Datasets and Annotation
The authors curated a new En-Hi corpus consisting of 6,983 posts (113,578 words) from Facebook pages of celebrities and news outlets. A subset of 381 posts (4,135 words) was manually annotated across four layers: matrix language, word origin, normalization/transliteration, and POS tags.
The annotation reveals that over 93% of posts were written entirely in Roman script, emphasizing the necessity of transliteration support. Analysis of the matrix language showed that Hindi-matrix sentences are much more likely to contain English words (23.37%) than vice versa (7.34%).
Key Results and Insights
The study highlights that back-transliteration is a critical point of failure. Incorrect transliteration prevents the POS tagger from identifying words correctly. Furthermore, error propagation in the pipeline is significant; an error in Language ID cascades through subsequent steps.
As shown in the results table above, the system's performance varies significantly based on the level of automation. In the "Gold Standard" scenario (Model 1a/1b), where language identification (LI) and Hindi normalization (HN) are known, total accuracy reaches 79.02%. However, in the "Fully Automatic" scenario (Model 3), accuracy drops to 65.39%.
English tagging remained relatively robust (~80% accuracy), while Hindi tagging dropped significantly in the fully automatic setting, primarily due to transliteration difficulties. The Language ID component itself achieved 84.6% accuracy but struggled with distorted Hindi words (e.g., "h" for "hai"), often mislabeling them as English.
Conclusion
The primary limitation of the current approach is its pipelined architecture, which leads to accumulated errors. Future research should focus on joint modeling—developing single models that handle language identification, normalization, and tagging simultaneously—and incorporating contextual awareness of the "matrix language" to improve predictions for embedded words.
Summary updated