Downloads · 30 days
13
31% of all-time downloads
linguardia/opus-mt-en-nds
opus-mt-en-nds is a translation model from linguardia. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
Translates English into Low German. Finetuned by Linguardia from Helsinki-NLP/opus-mt-en-mul on English↔Low German sentence pairs from Tatoeba.
Downloads · 30 days
13
31% of all-time downloads
All-time downloads
42
Public
Parameters
77M
310 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors308 MB · 99%
From the Hugging Face model README
Translates English into Low German. Finetuned by
Linguardia from Helsinki-NLP/opus-mt-en-mul on
English↔Low German sentence pairs from Tatoeba.
Built to generate course material for a language that no major machine translator supports.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tok = AutoTokenizer.from_pretrained("linguardia/opus-mt-en-nds")
model = AutoModelForSeq2SeqLM.from_pretrained("linguardia/opus-mt-en-nds")
batch = tok([">>nds<< I wake up early."], return_tensors="pt")
out = model.generate(**batch, num_beams=4, max_length=64)
print(tok.batch_decode(out, skip_special_tokens=True))
The target language is selected by the >>nds<< prefix on the source
text. It was added as a new token rather than replacing one of the base
model's existing languages, so every language the base already handled still
works.
| base | Helsinki-NLP/opus-mt-en-mul |
| training pairs | 5,157 |
| held out | 331 dev, 19 gold |
| epochs | 5.0 |
| batch size | 32 |
| optimiser | Adafactor, lr 5e-5, 500 warmup steps |
| max sequence | 48 tokens (99.9% of source, 99.6% of target) |
| hardware | Apple M4, MPS |
Held-out test set (1,200 pairs, never trained on, and filtered so no test sentence shares either its English or its Low German side with any training pair):
| metric | score |
|---|---|
| BLEU | 39.5 |
| chrF | 59.3 |
For comparison, the models already published from this pipeline score chrF 52.8 (Tachelhit), 41.4 (Scots) and 34.4 (Old English) on their own held-out sets.
Translating the canonical 2,000-sentence course corpus:
| metric | nds | shi | kab | jbo | tok |
|---|---|---|---|---|---|
| coverage % | 99.5 | 89.0 | 87.8 | 97.8 | 78.7 |
| rules | 1467 | 1257 | 1373 | 1318 | 1303 |
| attributed % | 50.4 | 28.3 | 26.4 | 34.3 | 18.7 |
5,157 English-Low German pairs from Tatoeba (CC-BY 2.0 FR), being every linked
pair minus those overlapping the held-out test set. North Low Saxon in Sass
orthography, which is what the Tatoeba nds corpus is.
No synthetic or model-generated training data was used. Base model
Helsinki-NLP/opus-mt-en-mul, Apache-2.0.
Machine output that no Low German speaker has read. Every row ships
verified: false; corrections from speakers are what flip it.
Sentence pairs come from Tatoeba, released under CC-BY 2.0 FR, with some sentences under CC0 1.0. Tatoeba's sentences are written by volunteers, and this model is a derivative of their work: if you use it, credit Tatoeba and its contributors.
Pairs were deduplicated on exact (English, Low German) text. No machine translation was used to create the training data at any point.
| layer | licence |
|---|---|
base model Helsinki-NLP/opus-mt-en-mul | Apache-2.0 |
| training data | CC-BY 2.0 FR / CC0 1.0 |
| these weights | Apache-2.0, with the attribution above |