[Paper Review] The WiLI benchmark dataset for written language identification
This paper introduces WiLI-2018, a publicly available benchmark dataset of 235,000 short Wikipedia paragraphs spanning 235 languages for monolingual written language identification. It enables training and evaluation of language identification models, with a focus on reproducibility and systematic comparison, while excluding artificial languages and emphasizing natural language text with Unicode normalization and consistent language splits between training and test sets.
This paper describes the WiLI-2018 benchmark dataset for monolingual written natural language identification. WiLI-2018 is a publicly available, free of charge dataset of short text extracts from Wikipedia. It contains 1000 paragraphs of 235 languages, totaling in 23500 paragraphs. WiLI is a classification dataset: Given an unknown paragraph written in one dominant language, it has to be decided which language it is.
Motivation & Objective
- To provide a publicly available, reproducible benchmark dataset for written language identification (LID) to support systematic evaluation and fair comparison of LID models.
- To address the lack of publicly shared benchmark datasets in LID research, which hinders reproducibility and progress in the field.
- To create a standardized dataset with consistent language splits (same languages in train and test) to evaluate model generalization on known languages.
- To exclude artificial or non-natural languages (e.g., HTML, JSON, XML) and focus on natural, written languages including constructed and dead languages.
- To support the evaluation of models on diverse language families and challenging language pairs, such as closely related languages (e.g., Serbian/Croatian/Bosnian) or similar scripts (e.g., Malay/Indonesian).
Proposed method
- The dataset is constructed from short, representative text excerpts extracted from Wikipedia articles, ensuring linguistic diversity and coverage of 235 languages.
- Each paragraph is preprocessed using Unicode normalization form C (NFC) to standardize combining characters and diacritics.
- The dataset is split into training and test sets with identical language sets, avoiding the need to predict unknown languages.
- Texts are selected to represent natural language, excluding code, markup, and informal language such as social media posts.
- The dataset is versioned annually (e.g., WiLI-2018) to reflect language evolution and ensure relevance over time.
- The benchmark supports evaluation of various LID models, including n-gram, Naïve Bayes, and neural approaches, using metrics like accuracy and F1-score.
Experimental results
Research questions
- RQ1How effective are existing LID systems on a large-scale, diverse, and publicly available benchmark of 235 languages?
- RQ2To what extent can models trained on WiLI-2018 generalize to similar but distinct languages, such as closely related variants (e.g., Brazilian vs. European Portuguese)?
- RQ3How do different feature engineering strategies (e.g., n-grams, tf-idf, character-level features) impact LID performance on this dataset?
- RQ4Can models trained on WiLI-2018 reliably detect when a text belongs to an unknown language, and how can this be improved?
- RQ5How does text length and training sample size affect the performance of LID models on low-resource and minority languages?
Key findings
- CLD2 is the fastest LID system evaluated, supporting 100 languages in the WiLI-2018 benchmark, but it confuses closely related languages such as Serbian, Bosnian, and Croatian.
- Langdetect, supporting 55 languages in WiLI-2018, achieves only 51% recall for Standard Chinese and often misclassifies Modern Standard Urdu as Arabic.
- Online services like Google Cloud Translation API and detectlanguage.com support more languages than WiLI-2018, but there is significant overlap and mismatch in language coverage.
- The TextCat system using n-grams and the out-of-place measure performs poorly due to issues with rare n-grams and lack of script awareness.
- tf-idf features are shown to be more effective than the out-of-place measure for language fingerprinting, as they better capture strong language indicators like diacritics (e.g., 'über' for German).
- Future work with WiLI-2018 includes evaluating RNNs, Markov models, and building models that can distinguish known from unknown languages, especially for low-resource and minority languages.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.