Language ID in the Context of Harvesting Language Data off the Web

Fei Xia, William D. Lewis, Hoifung PoonEACL 2009

Introduction

Standard language identification (LangID) is often considered a solved problem in natural language processing. However, these systems typically rely on long blocks of text and well-defined training sets for a limited number of high-resource languages. This paradigm breaks down when applied to thousands of low-resource languages with minimal available text. This paper addresses the challenge of identifying languages in Interlinear Glossed Text (IGT)—short snippets of translated and annotated sentences found in scholarly linguistics papers.

Figure 1: An example of Interlinear Glossed Text (IGT) from a linguistics paper, showing the Edo language.

The Problem: Massive Scale and Microscopic Data

The goal is to automatically harvest IGT to build the Online Database of Interlinear text (ODIN). This task is complicated by several factors:

  • Data Sparsity: Many languages have fewer than 10 words of training data available.
  • Short Instances: Snippets average only 5.1 words in length.
  • Unseen Languages: Approximately 10% of test instances belong to languages not present in the training data, making them impossible for standard classifiers to identify.

Methodology: From Classification to Coreference

The authors compare two fundamentally different approaches to tackle these constraints:

1. The Classification (CL) Approach

This standard method treats every language code as a distinct class. It fails in this context because it lacks "parameter tying." For example, a model must learn a specific rule linking the word "German" to the class DE. It cannot generalize this logic to other languages (like linking "French" to FR) without seeing specific examples in training.

2. The Coreference (CoRef) Approach

The paper's novel contribution is reframing LangID as a coreference resolution problem. The text snippet is treated as a "pronoun" and language names in the surrounding document as "proper nouns." The model makes a binary decision: Does this snippet link to this specific language name? This allows the model to learn universal rules—such as snippets belonging to the language mentioned immediately preceding them—that apply to all languages, including those never seen during training.

Experimental Results

The CoRef approach was implemented using a sequence-labeling MaxEnt classifier and a Markov Logic Network (MLN). Both methods significantly outperformed traditional classification.

Figure 5: Performance of the Coreference (CoRef) approach using sequence labeling and Markov logic models.

As shown in Figure 5, the CoRef approach achieved approximately 85% accuracy in realistic settings, far exceeding the ~67% achieved by the traditional Classification approach. Furthermore, the CoRef model demonstrated extreme resilience to low-data environments; when trained on just 0.5% of the data, it maintained ~80% accuracy, while the theoretical upper bound for the CL approach plummeted to 21%.

Conclusion

Reframing language identification as coreference resolution effectively solves the "unseen language" problem and mitigates the impact of extreme data sparsity. This approach enables the large-scale harvesting of linguistic data, providing a path toward building digital infrastructure for thousands of under-resourced languages.

Summary updated

BibTeX
@inproceedings{xia2009language,
  author = {Fei Xia and William D. Lewis and Hoifung Poon},
  title = {{Language ID in the Context of Harvesting Language Data off the Web}},
  booktitle = {EACL},
  year = {2009},
}
Figure