How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline

pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-zls-en")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-zls-en")
model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-zls-en")
Quick Links

zls-eng

  • source group: South Slavic languages

  • target group: English

  • OPUS readme: zls-eng

  • model: transformer

  • source language(s): bos_Latn bul bul_Latn hrv mkd slv srp_Cyrl srp_Latn

  • target language(s): eng

  • model: transformer

  • pre-processing: normalization + SentencePiece (spm32k,spm32k)

  • download original weights: opus2m-2020-08-01.zip

  • test set translations: opus2m-2020-08-01.test.txt

  • test set scores: opus2m-2020-08-01.eval.txt

Benchmarks

testset BLEU chr-F
Tatoeba-test.bul-eng.bul.eng 54.9 0.693
Tatoeba-test.hbs-eng.hbs.eng 55.7 0.700
Tatoeba-test.mkd-eng.mkd.eng 54.6 0.681
Tatoeba-test.multi.eng 53.6 0.676
Tatoeba-test.slv-eng.slv.eng 25.6 0.407

System Info:

Downloads last month
83
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using Helsinki-NLP/opus-mt-zls-en 16