ConLID: Sinhala-script LID (target-only)
ConLID fine-tuned to separate Sinhala, Pali and Sanskrit written in Sinhala
script (sin_Sinh, pli_Sinh, san_Sinh), which the base model labels as Sinhala.
Training regime: target-only adaptation (Sinhala, Pali and Sanskrit training data only). The model keeps the base model's original output
labels; labels it lacked were added.
Code: https://anonymous.4open.science/r/Sinhala-LangID/
Base model
epfl-nlp/ConLID (revision bb370277ea6ebb4f801868db5a4d3dbb3f2e7fd6). This checkpoint inherits the base model's licence (other).
Training and selection
| Regime | target_only |
| Seed | 42 |
| Selected lr | 0.2 (grid [0.02, 0.05, 0.2]) |
| Selected epoch | 3 of max 3 |
| Selection metric | macro_target3 on validation = 0.9814 |
| Training / validation rows | 151979 / 18999 |
| Rule | max validation metric; ties keep the first found: smaller lr, then earlier epoch |
The full grid is in training/selection_log.csv.
Evaluation
Scored labels: target sin_Sinh, pli_Sinh, san_Sinh; replay san_Deva, eng_Latn, tam_Taml, hin_Deva, ben_Beng, arb_Arab, fra_Latn, deu_Latn.
Hybrid sets use each benchmark's own rows for the replay labels, with its
Sinhala-script rows replaced by the target test split. Predictions are
unrestricted. Values are point estimates with bootstrap 95% CIs.
| Eval set | n | Accuracy | Macro-F1 (11) | Macro-F1 (target 3) | Macro-F1 (replay 8) |
|---|---|---|---|---|---|
| Target test (Sinhala/Pali/Sanskrit) | 18982 | 0.9902 [0.9888, 0.9916] | 0.9842 [0.9815, 0.9868] | 0.9842 [0.9815, 0.9868] | n/a |
| FLORES+ hybrid | 27078 | 0.9723 [0.9704, 0.9742] | 0.9613 [0.9588, 0.9641] | 0.9842 [0.9814, 0.9867] | 0.9527 [0.9492, 0.9564] |
| CommonLID hybrid | 89874 | 0.7809 [0.7782, 0.7837] | 0.9275 [0.9249, 0.9298] | 0.9801 [0.9774, 0.9829] | 0.9078 [0.9045, 0.9105] |
| WiLI-2018 hybrid | 22469 | 0.9853 [0.9837, 0.9868] | 0.9751 [0.9715, 0.9785] | 0.9839 [0.9813, 0.9865] | 0.9713 [0.9661, 0.9760] |
Usage
With the code release (any model family), using the same loader as the paper's evaluation:
from huggingface_hub import snapshot_download
from lidpipe.models import load # data_pipeline/ in the code repository
model = load("conlid", snapshot_download("temp-anon/conlid-sinhala-script-lid-target-only"))
labels, confidences = model.predict(["නමෝ තස්ස භගවතෝ අරහතෝ සම්මාසම්බුද්ධස්ස"])
Inputs should be normalised as in the paper (lidpipe.text.normalise: NFC, invisible
characters removed except ZWJ/ZWNJ, whitespace collapsed).
Citation
@misc{sinhala_script_lid,
title = {A Benchmark for Sinhala-Script Language Identification: Sinhala, Pali, and Sanskrit},
author = {Anonymous},
year = {2026}
}
- Downloads last month
- -
Model tree for temp-anon/conlid-sinhala-script-lid-target-only
Base model
epfl-nlp/ConLID