English to Tswana translation model translate-en-tn
Open machine translation from English into Tswana, published by Windstorm Labs on Hugging Face.
- Task
- Translation: English → Tswana
- Languages
- English en, Tswana tn
- Lineage
- OPUS-MT
- Format
- transformers (Marian), safetensors
- Hugging Face
- WindyTranslate/translate-en-tn
- Last updated on HF
- 2026-08-04
Quality
| Benchmark | chrF++ | BLEU | Band | Measured |
|---|---|---|---|---|
| FLORES-200 dev, 48 sentences | 39.15 | 13.01 | Usable | 2026-08-04 |
A screening score on 48 sentences, not a publication result. Bands: Excellent ≥ 60, Good 45–60, Usable 30–45, Limited 15–30, Not recommended < 15. Method and caveats.
Recorded output (sentence 1, first 110 characters)
- Source
- On Monday, scientists from the Stanford University School of Medicine announced the invention of a new diagnos…
- Reference
- Ka Mosupologo, baitsanape ba Sekwele sa Bongaka sa Yunibesithi ya Stanford ba ntsi tse pego ya go re ba dirile…
- This model
- Ka Mantaga, baitsesaense ba ba tswang kwa Sekolong sa Yunibesithi sa Amerika sa Medicine ba ne ba itsise ka go
How to run
Shell
pip install transformers sentencepiece torchPython
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
repo = "WindyTranslate/translate-en-tn"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSeq2SeqLM.from_pretrained(repo)
batch = tok(["Where is the train station?"], return_tensors="pt", padding=True)
print(tok.batch_decode(model.generate(**batch), skip_special_tokens=True)[0])Tested: Pattern run on 2026-10-01 against WindyTranslate/translate-tc-big-en-fr with transformers 4.57.6 and 5.18.0 on CPU ("Où se trouve la gare ?"); multi-target token prefix run against translate-tc-bible-big-mul-deu_eng_nld. Not run on every model individually.
Licence and attribution
- Licence
- Apache-2.0
- Upstream
- Helsinki-NLP/opus-mt-en-tn
- Upstream licence
- Apache-2.0
- Attribution
- Based on OPUS-MT model Helsinki-NLP/opus-mt-en-tn by Helsinki-NLP (Language Technology Research Group, University of Helsinki). Licensed Apache-2.0.
Copy this into your NOTICE file (or equivalent) when you ship the model:
NOTICE
This product uses the model WindyTranslate/translate-en-tn
(https://huggingface.co/WindyTranslate/translate-en-tn), published by Windstorm Labs (https://windstormlabs.com).
Based on OPUS-MT model Helsinki-NLP/opus-mt-en-tn by Helsinki-NLP (Language Technology Research Group, University of Helsinki). Licensed Apache-2.0.
Windstorm Labs modified the upstream weights; the model card describes what was changed.
Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0This is a convenience, not legal advice. See Licensing.
Related models
| Model | chrF++ (FLORES-200 dev) | Licence |
|---|---|---|
| Tswana to English translate-tn-en | 38.0 Usable | Apache-2.0 |
| English to French translate-tc-big-en-fr | 69.6 Excellent | CC-BY-4.0 |
| English to Portuguese translate-tc-big-en-pt | 66.6 Excellent | CC-BY-4.0 |
| English to Bulgarian translate-tc-big-en-bg | 66.6 Excellent | CC-BY-4.0 |
| English to French translate-en-fr | 66.2 Excellent | Apache-2.0 |
| English to Danish translate-en-da | 65.6 Excellent | Apache-2.0 |
| English to Swedish translate-en-sv | 64.7 Excellent | Apache-2.0 |
| English to Romanian translate-tc-big-en-ro | 64.4 Excellent | CC-BY-4.0 |