OpenLID-v3: Improving the Precision of Closely Related Language Identification -- An Experience Report
About
Language identification (LID) is an essential step in building high-quality multilingual datasets from web data. Existing LID tools (such as OpenLID or GlotLID) often struggle to identify closely related languages and to distinguish valid natural language from noise, which contaminates language-specific subsets, especially for low-resource languages. In this work we extend the OpenLID classifier by adding more training data, merging problematic language variant clusters, and introducing a special label for marking noise. We call this extended system OpenLID-v3 and evaluate it against GlotLID on multiple benchmarks. During development, we focus on three groups of closely related languages (Bosnian, Croatian, and Serbian; Romance varieties of Northern Italy and Southern France; and Scandinavian languages) and contribute new evaluation datasets where existing ones are inadequate. We find that ensemble approaches improve precision but also substantially reduce coverage for low-resource languages. OpenLID-v3 is available on https://huggingface.co/HPLT/OpenLID-v3.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Language Identification | Nordic DSL 50k | Loose Accuracy94.71 | 8 | |
| Language Identification | FLORES+ (devtest) | Loose Accuracy99.97 | 8 | |
| Language Identification | SLIDE | Loose Accuracy95.55 | 8 | |
| Language Identification | FastSpell n=6,809 (excluding Nynorsk) | FPR0.15 | 7 | |
| Language Identification | UDHR n=10,283 (test) | FPR0.0045 | 7 | |
| Language Identification | HPLT-LID 3.0 (manual inspection) | FPR0.001 | 5 | |
| Language Identification | SLIDE | Norwegian Bokmål FPR4 | 4 | |
| Language Identification | Nordic DSL | FPR (Norwegian Bokmål)0.7 | 4 | |
| Language Identification | FLORES+ | FPR (Norwegian Bokmål)0.01 | 4 | |
| Language Identification | Twitter users | Bosnian FPR0.23 | 4 |