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-en-phi")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

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

eng-phi

  • source group: English

  • target group: Philippine languages

  • OPUS readme: eng-phi

  • model: transformer

  • source language(s): eng

  • target language(s): akl_Latn ceb hil ilo pag war

  • model: transformer

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

  • a sentence initial language token is required in the form of >>id<< (id = valid target language ID)

  • 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.eng-akl.eng.akl 7.1 0.245
Tatoeba-test.eng-ceb.eng.ceb 10.5 0.435
Tatoeba-test.eng-hil.eng.hil 18.0 0.506
Tatoeba-test.eng-ilo.eng.ilo 33.4 0.590
Tatoeba-test.eng.multi 13.1 0.392
Tatoeba-test.eng-pag.eng.pag 19.4 0.481
Tatoeba-test.eng-war.eng.war 12.8 0.441

System Info:

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

Spaces using Helsinki-NLP/opus-mt-en-phi 17