Downloads · 30 days
10
45% of all-time downloads
NagaYu/tessera-span-lid
tessera-span-lid is a token classification model from NagaYu. Use it when you need labels on individual words, such as names. It is set up for tessera. The card lists the license as apache-2.0.
Labels every span of a document with a set of languages, so low-resource text inside a mixed page survives a corpus filter that would otherwise discard the whole document or file it under one language.
Downloads · 30 days
10
45% of all-time downloads
All-time downloads
22
Public
Repo size
122 MB
Likes
0
Public
Click a slice to open those files.
.onnx52.1 MB · 43%
From the Hugging Face model README
Labels every span of a document with a set of languages, so low-resource text inside a mixed page survives a corpus filter that would otherwise discard the whole document or file it under one language.
This does not replace GlotLID / OpenLID / OpenLID-v3. They are the comparison, they are the state of the art at document-level LID, and they are Tessera's upstream: their output is an optional prior input. Tessera is one extra pipeline stage.
*_Latn variants + und)| system | micro-F1 | macro-F1 | recovery rate |
|---|---|---|---|
| A_fasttext176_document | 0.2803 | 0.0505 | 0.0 |
| B_glotlid_document | 0.3031 | 0.265 | 0.0 |
| C_glotlid_per_line | 0.406 | 0.4788 | 0.1713 |
| D_tessera_no_prior | 0.7712 | 0.6487 | 0.8621 |
| E_tessera_glotlid_prior | 0.7795 | 0.6611 | 0.8396 |
recovery rate = of mid/tail-resource spans in documents a document-level baseline
would have discarded or kept under the wrong language, the fraction correctly
labelled.
Intended for corpus curation: deciding which spans of a crawled document to keep and under which language. Not intended as a general-purpose LID API, and not better than GlotLID at labelling a whole document.
Known limits, measured rather than guessed:
Language identification decides whose text survives a corpus build. Mislabelling a
language removes it from the datasets that later models learn from. The dataset card
lists every covered language with its known weaknesses; tail-language errors are
reported separately rather than averaged away; und is a real label so the model can
decline to guess.
Repository: NagaYu/tessera-span-lid.