Overview for the Second Shared Task on Language Identification in Code-Switched Data

Giovanni Molina, Fahad AlGhamdi, Mahmoud Ghoneim, Abdelati Hawwari, Nicolas Rey-Villamizar, Mona T. Diab, Thamar Solorio

Abstract

This paper summarizes the results of the 2016 Shared Task on Language Identification in Code-Switched data, focusing on Spanish-English (SPA-ENG) and Modern Standard Arabic-Dialectal Arabic (MSA-DA) pairs. Nine participating teams utilized various machine learning techniques, including Conditional Random Fields (CRFs) and deep learning models. Results indicate that while systems perform well on distinct language pairs like SPA-ENG, identifying switches between closely related varieties like MSA and Egyptian Arabic remains a significant challenge due to linguistic proximity and shared homographs.

Introduction

In our increasingly globalized digital world, "code-switching"—the practice of alternating between two or more languages in a single conversation or text—is a linguistic norm on social media. However, most Natural Language Processing (NLP) pipelines are designed with the assumption of monolingual input. If a system cannot accurately identify which word belongs to which language at the token level, downstream tasks like machine translation, sentiment analysis, and part-of-speech tagging inevitably fail.

Examples of code-switching in the MSA-DA and SPA-ENG datasets.

The 2016 Shared Task was organized to benchmark how well current systems handle this complexity across two distinct scenarios: Spanish-English (SPA-ENG), which features languages with distinct vocabularies, and Modern Standard Arabic-Dialectal Arabic (MSA-DA), which involves closely related varieties that share many homographs.

Methodology and Data

The task was framed as a sequence labeling problem: given a string of tokens (words, emojis, or punctuation), systems assigned one of eight labels: lang1, lang2, fw (foreign word), mixed (intra-word switching), unk (unintelligible), ambiguous, other (punctuation/handles), and ne (named entities).

Participating teams employed a variety of architectures:

  • Conditional Random Fields (CRFs): The most popular choice for sequence labeling where the label of one word often depends on its neighbors.
  • Deep Learning: An emerging trend using Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks to capture sub-word information and long-distance dependencies.
  • Feature Engineering: Most systems relied on character n-grams, word capitalization (casing), affixes, and external resources like large monolingual corpora or specialized dictionaries.

The researchers curated datasets from Twitter, a primary source for natural, informal code-switching. The SPA-ENG test set included over 10,000 tweets, while the MSA-DA dataset focused on Egyptian Arabic (EGY) as the dialectal component.

Key Results

Systems were ranked using a weighted F-measure at both the tweet level (identifying if the whole tweet is code-switched) and the token level.

Performance comparison of participating systems across the SPA-ENG and MSA-DA test sets.

As shown in the results, the SPA-ENG top-performing system (Shirvani et al.) achieved a 91.3% Weighted F1 at the tweet level. In contrast, the MSA-DA task proved more difficult, with the best system (Samih et al.) reaching an 83% Weighted F1. All participating systems comfortably outperformed the simple lexicon-based baseline, demonstrating that context-aware machine learning is essential for this task.

Discussion and Insights

The Proximity Penalty

The most striking insight is that language identification is significantly harder when the languages are linguistically "close." Distinguishing Spanish from English is relatively straightforward for a machine, but distinguishing a formal Arabic dialect from a regional one is a much "fuzzier" problem due to shared vocabulary.

Data Sparsity and Noise

Classes like mixed (e.g., "ubereando") or ambiguous (words like "a" which exist in both English and Spanish) remain extremely difficult to predict because they appear rarely in training data. Conversely, systems are nearly perfect (97%+ F-measure) at identifying the other category (emojis, links, symbols), suggesting that the "noise" of social media is not the primary bottleneck; rather, the linguistic switching itself is the challenge.

Conclusion

While the 2016 systems showed marked improvement over the previous 2014 task, several challenges persist. Identifying Named Entities (NER) remains difficult as they often bypass standard linguistic rules. Future work aims to move beyond simple labeling to predicting the exact position and frequency of switch points, providing deeper sociolinguistic insights into digital communication.

Summary updated

BibTeX
@inproceedings{molina2016overview,
  author = {Giovanni Molina and Fahad AlGhamdi and Mahmoud Ghoneim and Abdelati Hawwari and Nicolas Rey-Villamizar and Mona T. Diab and Thamar Solorio},
  title = {{Overview for the Second Shared Task on Language Identification in Code-Switched Data}},
  booktitle = {CodeSwitch @ EMNLP},
  year = {2016},
  url = {https://openreview.net/forum?id=zA7yQL1p3f},
}
Figure