NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SMPOST: Parts of Speech Tagger for Code-Mixed Indic Social Media Text

Deepak Gupta, Shubham Tripathi, Asif Ekbal, Pushpak BhattacharyyaarXiv 2017

TL;DR

SMPOST introduces a hybrid framework combining deterministic rules and Conditional Random Fields (CRFs) to tackle Part-of-Speech (PoS) tagging on highly informal, code-mixed Indian social media text. By leveraging rich linguistic features like phonetic normalization and character n-grams, the system achieves robust performance across three language pairs (English-Hindi, English-Bengali, and English-Telugu) across Facebook, Twitter, and WhatsApp.

What Problem Does This Paper Address?

Social media users in India frequently communicate using "code-mixing"—the practice of blending their regional language (transcribed into the Roman script) with English words and phrases. Standard Natural Language Processing (NLP) pipelines fail spectacularly on this type of text because it lacks standard grammar, features creative spellings, and is packed with abbreviations, typos, emoticons, and platform-specific syntax (like hashtags and mentions).

PoS tagging is a foundational step for downstream tasks like dependency parsing and sentiment analysis. However, building an accurate PoS tagger for code-mixed Indic text is exceptionally challenging due to high linguistic variance and a severe shortage of clean, annotated datasets. This paper addresses this gap by developing a generic, feature-rich tagger tailored to the chaotic nature of social media communication.

Methods

The authors propose a two-stage hybrid pipeline:

  1. Rule-Based Tagger: A deterministic pre-processing step that uses regular expressions and dictionary lookups to instantly tag non-standard tokens. This filters out punctuation (RD_PUNC), emoticons (E), web URLs (U), hashtags (#), Twitter handles (@), and numerical expressions ($).
  2. CRF Classifier: Tokens that cannot be resolved by the rule-based system are passed to a Conditional Random Field (CRF) classifier. The strength of this classifier relies on an exhaustive set of engineered linguistic features, including:
  3. Context Windows: Features from the previous two and next two words.
  4. Character n-grams: Unigrams, bigrams, and trigrams to capture morphological variations.
  5. Word Normalization: Mapping character types (e.g., transforming "NH10" to "AA00" and "Maine" to "Aaaaa") to group structurally similar words together.
  6. Phonetic Normalization: Utilizing the Double Metaphone algorithm to handle phonetic spelling variations in English tokens.
  7. Stemming: Applying the Porter Stemmer to isolate root English words.

Datasets

The system was trained and evaluated using datasets provided by the ICON-2016 and ICON-2015 tool contests for code-mixed Indian social media text. The data encompasses three distinct language pairs:

  • English-Hindi (EN-HI)
  • English-Bengali (EN-BE)
  • English-Telugu (EN-TE)

Each language pair includes text collected from three platforms: Facebook, Twitter, and WhatsApp. The tokens are annotated using the Bureau of Indian Standards (BIS) tagset, providing both coarse-grained and fine-grained labels.

Key Insights and Ideas

  • Rules First, Machine Learning Second: Social media text contains a massive amount of structured noise (URLs, hashtags, emojis). Filtering these out deterministically before running the machine learning model significantly reduces the classifier's search space and error rate.
  • Cross-Platform Generalization vs. Specialization: The authors evaluated two training strategies: pooling data across all platforms per language pair (Run-1) versus training platform-specific models (Run-2). Interestingly, pooling the data (Run-1) yielded superior generalization on WhatsApp and Twitter due to the larger, more diverse training signal. Conversely, platform-specific training (Run-2) worked better exclusively for Facebook data.
  • Morphological and Phonetic Features are Crucial: Because code-mixed text lacks standardized spelling, features like character n-grams and phonetic matching algorithms are essential for recognizing words despite creative variations or typos.

Key Results

The system successfully generated both fine-grained and coarse-grained tags across all test sets:

  • Fine-Grained Tagging: Run-1 achieved strong F-scores on WhatsApp data across all languages (0.797 for EN-HI, 0.848 for EN-BE, and 0.843 for EN-TE). Run-2 excelled on Facebook data, hitting an F-score of 0.831 for English-Bengali.
  • Coarse-Grained Tagging: Performance was generally higher here, with Run-1 achieving an F-score of 0.904 on English-Hindi Twitter data and 0.879 on English-Telugu WhatsApp data.
  • Data Sparsity Failure Mode: A notable drop occurred in the English-Telugu Twitter domain under Run-2, where the coarse-grained F-score plummeted to 0.230. This highlights the extreme difficulty of training platform-specific models when data is highly sparse.

The complete quantitative breakdown of the system's performance can be seen in the fine-grained results (Table 2) and coarse-grained results (Table 3) below:

Table 2: Precision (P), Recall (R) and F-Scores (F) of constrained system, Runs-1 and Run-2 on Finer grained tag set. Here the notation are, BN-FB: Facebook data in English-Bengali, BN-TWT: Twitter data in English-Bengali, BN-WA: WhatsApp data in English-Bengali, HI-FB: Facebook data in English- Hindi, HI-TWT: Twitter data in English-Hindi, HI-WA: WhatsApp data in English-Hindi, TE-FB: Facebook data in English-Telugu, TE-TWT: Twitter data in English-Telugu, TE-WA: WhatsApp data in English-Telugu
Table 3: Coarse-grained results

Limitations and Future Work

The primary bottleneck identified by the authors is data scarcity. The lack of massive, human-annotated code-mixed datasets makes it difficult to effectively deploy deep learning architectures like Recurrent Neural Networks (RNNs) or Long Short-Term Memory (LSTM) networks, which traditionally underperform CRFs when training data is limited.

To address this, the authors' immediate future work focuses on developing a hybrid architecture that combines the structured sequence-labeling strengths of a CRF classifier with a Bi-Directional LSTM (BLSTM) model to better capture long-range contextual dependencies without overfitting.

Summary updated

BibTeX
@misc{gupta2017smpost,
  author = {Deepak Gupta and Shubham Tripathi and Asif Ekbal and Pushpak Bhattacharyya},
  title = {{SMPOST: Parts of Speech Tagger for Code-Mixed Indic Social Media Text}},
  year = {2017},
  eprint = {1702.00167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.00167},
}

Loading related content...

Figure