CoolFace
Modelpublic

Helsinki-NLP/opus-mt-tc-bible-big-deu_eng_fra_por_spa-iir

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes107downloads
Model Card

opus-mt-tc-bible-big-deuengfraporspa-iir

Table of Contents

Model Details

Neural machine translation model for translating from unknown (deu+eng+fra+por+spa) to Indo-Iranian languages (iir).

This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train. Model Description:

  • —Developed by: Language Technology Research Group at the University of Helsinki
  • —Model Type: Translation (transformer-big)
  • —Release: 2024-05-30
  • —License: Apache-2.0
  • —Language(s):
  • —Source Language(s): deu eng fra por spa
  • —Target Language(s): anp asm awa bal ben bho bpy ckb diq div dty fas gbm glk guj hif hin hne hns jdt kas kmr kok kur lah lrc mag mai mar mzn nep npi ori oss pal pan pes pli prs pus rhg rmy rom san sdh sin skr snd syl tgk tly urd zza
  • —Valid Target Language Labels: >>aee<< >>aeq<< >>aiq<< >>anp<< >>anr<< >>ask<< >>asm<< >>atn<< >>avd<< >>ave<< >>awa<< >>bal<< >>balLatn<< >>bdv<< >>ben<< >>bfb<< >>bfy<< >>bfz<< >>bgc<< >>bgd<< >>bge<< >>bgw<< >>bha<< >>bhb<< >>bhd<< >>bhe<< >>bhh<< >>bhi<< >>bho<< >>bht<< >>bhu<< >>bjj<< >>bjm<< >>bkk<< >>bmj<< >>bns<< >>bpx<< >>bpy<< >>bqi<< >>bra<< >>bsg<< >>bsh<< >>btv<< >>ccp<< >>cdh<< >>cdi<< >>cdj<< >>cih<< >>ckb<< >>clh<< >>ctg<< >>dcc<< >>def<< >>deh<< >>dhn<< >>dho<< >>diq<< >>div<< >>dmk<< >>dml<< >>doi<< >>dry<< >>dty<< >>dub<< >>duh<< >>dwz<< >>emx<< >>esh<< >>fas<< >>fay<< >>gas<< >>gbk<< >>gbl<< >>gbm<< >>gbz<< >>gdx<< >>ggg<< >>ghr<< >>gig<< >>gjk<< >>glh<< >>glk<< >>goz<< >>gra<< >>guj<< >>gwc<< >>gwf<< >>gwt<< >>gzi<< >>hac<< >>haj<< >>haz<< >>hca<< >>hif<< >>hifLatn<< >>hii<< >>hin<< >>hinLatn<< >>hlb<< >>hne<< >>hns<< >>hrz<< >>isk<< >>jdg<< >>jdt<< >>jdtCyrl<< >>jml<< >>jnd<< >>jns<< >>jpr<< >>kas<< >>kasArab<< >>kasDeva<< >>kbu<< >>keq<< >>key<< >>kfm<< >>kfr<< >>kfs<< >>kft<< >>kfu<< >>kfv<< >>kfx<< >>kfy<< >>kgn<< >>khn<< >>kho<< >>khw<< >>kjo<< >>kls<< >>kmr<< >>kok<< >>kra<< >>ksy<< >>ktl<< >>kur<< >>kurArab<< >>kurCyrl<< >>kurLatn<< >>kvx<< >>kxp<< >>kyw<< >>lah<< >>lbm<< >>lhl<< >>lki<< >>lmn<< >>lrc<< >>lrl<< >>lsa<< >>lss<< >>luv<< >>luz<< >>mag<< >>mai<< >>mar<< >>mby<< >>mjl<< >>mjz<< >>mkb<< >>mke<< >>mki<< >>mnj<< >>mvy<< >>mwr<< >>mzn<< >>nag<< >>nep<< >>nhh<< >>nli<< >>nlx<< >>noe<< >>noi<< >>npi<< >>ntz<< >>nyq<< >>odk<< >>okh<< >>omr<< >>oos<< >>ori<< >>ort<< >>oru<< >>oss<< >>pal<< >>pan<< >>panGuru<< >>paq<< >>pcl<< >>peo<< >>pes<< >>pgg<< >>phd<< >>phl<< >>phv<< >>pli<< >>plk<< >>plp<< >>pmh<< >>prc<< >>prn<< >>prs<< >>psh<< >>psi<< >>psu<< >>pus<< >>pwr<< >>raj<< >>rat<< >>rdb<< >>rei<< >>rhg<< >>rhgLatn<< >>rjs<< >>rkt<< >>rmi<< >>rmq<< >>rmt<< >>rmy<< >>rom<< >>rtw<< >>san<< >>sanDeva<< >>saz<< >>sbn<< >>sck<< >>scl<< >>sdb<< >>sdf<< >>sdg<< >>sdh<< >>sdr<< >>sgh<< >>sgl<< >>sgr<< >>sgy<< >>shd<< >>shm<< >>sin<< >>siy<< >>sjp<< >>skr<< >>smm<< >>smv<< >>smy<< >>snd<< >>sndArab<< >>sog<< >>soi<< >>soj<< >>sqo<< >>srh<< >>srx<< >>srz<< >>ssi<< >>sts<< >>syl<< >>sylSylo<< >>tdb<< >>tgk<< >>tgkCyrl<< >>tgkLatn<< >>the<< >>thl<< >>thq<< >>thr<< >>tkb<< >>tks<< >>tkt<< >>tly<< >>tly_Latn<< >>tnv<< >>tov<< >>tra<< >>trm<< >>trw<< >>ttt<< >>urd<< >>ush<< >>vaa<< >>vaf<< >>vah<< >>vas<< >>vav<< >>ved<< >>vgr<< >>vmh<< >>wbk<< >>wbl<< >>wne<< >>wsv<< >>wtm<< >>xbc<< >>xco<< >>xka<< >>xkc<< >>xkj<< >>xkp<< >>xpr<< >>xsc<< >>xtq<< >>xvi<< >>xxx<< >>yah<< >>yai<< >>ydg<< >>zum<< >>zza<<
  • —Original Model: opusTCv20230926max50+bt+jhubc_transformer-big_2024-05-30.zip
  • —Resources for more information:
  • —OPUS-MT dashboard
  • —OPUS-MT-train GitHub Repo
  • —More information about MarianNMT models in the transformers library
  • —Tatoeba Translation Challenge
  • —HPLT bilingual data v1 (as part of the Tatoeba Translation Challenge dataset)
  • —A massively parallel Bible corpus

This is a multilingual translation model with multiple target languages. A sentence initial language token is required in the form of >>id<< (id = valid target language ID), e.g. >>anp<<

Uses

This model can be used for translation and text-to-text generation.

Risks, Limitations and Biases

CONTENT WARNING: Readers should be aware that the model is trained on various public data sets that may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.

Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).

How to Get Started With the Model

A short example code:

python
from transformers import MarianMTModel, MarianTokenizer

src_text = [
    ">>anp<< Replace this with text in an accepted source language.",
    ">>zza<< This is the second sentence."
]

model_name = "pytorch-models/opus-mt-tc-bible-big-deu_eng_fra_por_spa-iir"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))

for t in translated:
    print( tokenizer.decode(t, skip_special_tokens=True) )

You can also use OPUS-MT models with the transformers pipelines, for example:

python
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-bible-big-deu_eng_fra_por_spa-iir")
print(pipe(">>anp<< Replace this with text in an accepted source language."))

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
deu-fastatoeba-test-v2021-08-070.4576320.3318524941
deu-kur_Latntatoeba-test-v2021-08-071.0270.62231249
eng-bentatoeba-test-v2021-08-070.4792717.6250011654
eng-fastatoeba-test-v2021-08-070.4019217.1376231110
eng-hintatoeba-test-v2021-08-070.5252528.4500032904
eng-kur_Latntatoeba-test-v2021-08-070.4930.02901682
eng-martatoeba-test-v2021-08-070.5254924.41039661140
eng-pestatoeba-test-v2021-08-070.4040117.3375731044
eng-urdtatoeba-test-v2021-08-070.4576418.1166312155
fra-fastatoeba-test-v2021-08-070.4241418.93763217
deu-npiflores101-devtest3.0820.2101219762
eng-benflores101-devtest0.5105517.0101221155
eng-ckbflores101-devtest0.453377.1101221159
eng-gujflores101-devtest0.5397222.3101223840
eng-hinflores101-devtest0.5798033.4101227743
eng-marflores101-devtest0.4820614.3101221810
eng-urdflores101-devtest0.4805020.5101228098
fra-benflores101-devtest0.4380610.9101221155
fra-ckbflores101-devtest0.410164.9101221159
por-benflores101-devtest0.4273010.0101221155
por-npiflores101-devtest2.0840.2101219762
spa-hinflores101-devtest0.4337116.0101227743
deu-benflores200-devtest0.4400510.6101221155
deu-hinflores200-devtest0.4844822.3101227743
deu-hneflores200-devtest0.4265913.8101226582
deu-magflores200-devtest0.4247714.0101226516
deu-npiflores200-devtest5.8700.1101219762
deu-pesflores200-devtest0.4272614.9101224986
deu-tgkflores200-devtest0.4093212.9101225530
deu-urdflores200-devtest0.4125014.4101228098
eng-benflores200-devtest0.5136117.1101221155
eng-ckbflores200-devtest0.457507.7101221152
eng-gujflores200-devtest0.5423122.4101223840
eng-hinflores200-devtest0.5837133.7101227743
eng-hneflores200-devtest0.4759119.9101226582
eng-magflores200-devtest0.5107022.2101226516
eng-marflores200-devtest0.4873314.8101221810
eng-panflores200-devtest0.4501518.1101227451
eng-pesflores200-devtest0.4858821.1101224986
eng-prsflores200-devtest0.5187924.5101225885
eng-sinflores200-devtest0.4382310.6101223278
eng-tgkflores200-devtest0.4732317.8101225530
eng-urdflores200-devtest0.4821220.4101228098
fra-benflores200-devtest0.4402911.0101221155
fra-ckbflores200-devtest0.413535.3101221152
fra-hinflores200-devtest0.4840622.6101227743
fra-hneflores200-devtest0.4235313.9101226582
fra-magflores200-devtest0.4267814.3101226516
fra-npiflores200-devtest6.5250.1101219762
fra-pesflores200-devtest0.4352615.5101224986
fra-tgkflores200-devtest0.4298213.7101225530
fra-urdflores200-devtest0.4143814.2101228098
por-benflores200-devtest0.4339010.4101221155
por-ckbflores200-devtest0.423035.6101221152
por-hinflores200-devtest0.4952423.6101227743
por-hneflores200-devtest0.4226913.9101226582
por-magflores200-devtest0.4275315.0101226516
por-npiflores200-devtest6.7370.1101219762
por-pesflores200-devtest0.4319415.4101224986
por-tgkflores200-devtest0.4186013.2101225530
por-urdflores200-devtest0.4179914.8101228098
spa-benflores200-devtest0.418938.3101221155
spa-hinflores200-devtest0.4377716.4101227743
spa-kas_Arabflores200-devtest9.3800.1101223514
spa-npiflores200-devtest7.5180.2101219762
spa-pesflores200-devtest0.4085612.2101224986
spa-prsflores200-devtest0.4036112.8101225885
spa-tgkflores200-devtest0.4010010.8101225530
eng-hinnewstest20140.5124923.6250760872
eng-gujnewstest20190.5728225.599821924
deu-benntrex1280.439719.6199740095
deu-fasntrex1280.4146913.8199750525
deu-hinntrex1280.4294016.8199755219
deu-snd_Arabntrex1286.1290.1199749866
deu-urdntrex1280.4188114.5199754259
eng-benntrex1280.5155516.6199740095
eng-fasntrex1280.4689519.7199750525
eng-gujntrex1280.4899017.1199745335
eng-hinntrex1280.5230726.9199755219
eng-marntrex1280.4458010.4199742375
eng-nepntrex1280.429558.4199740570
eng-panntrex1280.4614119.6199754355
eng-sinntrex1280.422369.7199744429
eng-snd_Arabntrex1281.9320.1199749866
eng-urdntrex1280.4964622.1199754259
fra-benntrex1280.417168.9199740095
fra-fasntrex1280.4128213.8199750525
fra-hinntrex1280.4247517.1199755219
fra-snd_Arabntrex1286.0470.0199749866
fra-urdntrex1280.4153614.8199754259
por-benntrex1280.438559.9199740095
por-fasntrex1280.4201014.4199750525
por-hinntrex1280.4327517.6199755219
por-snd_Arabntrex1286.3360.1199749866
por-urdntrex1280.4248415.2199754259
spa-benntrex1280.4490510.3199740095
spa-fasntrex1280.4220714.1199750525
spa-hinntrex1280.4338017.6199755219
spa-snd_Arabntrex1285.5510.0199749866
spa-urdntrex1280.4243415.0199754259
eng-bentico19-test0.5156317.9210051695
eng-ckbtico19-test0.461888.9210050500
eng-fastico19-test0.5318225.8210059779
eng-hintico19-test0.6312841.6210062680
eng-martico19-test0.4561912.9210050872
eng-neptico19-test0.5341317.6210048363
eng-prstico19-test0.4410117.3210062972
eng-pustico19-test0.4706320.5210066213
eng-urdtico19-test0.5105422.0210065312
fra-fastico19-test0.4347617.9210059779
fra-hintico19-test0.4862525.6210062680
fra-neptico19-test0.411539.7210048363
fra-urdtico19-test0.4048214.4210065312
por-bentico19-test0.4581412.5210051695
por-ckbtico19-test0.416845.6210050500
por-fastico19-test0.4918121.3210059779
por-hintico19-test0.5575931.1210062680
por-martico19-test0.400679.1210050872
por-neptico19-test0.4737812.1210048363
por-pustico19-test0.4249615.9210066213
por-urdtico19-test0.4556016.6210065312
spa-bentico19-test0.4575112.7210051695
spa-ckbtico19-test0.415685.4210050500
spa-fastico19-test0.4897421.0210059779
spa-hintico19-test0.5564130.9210062680
spa-martico19-test0.403299.4210050872
spa-neptico19-test0.4716412.1210048363
spa-prstico19-test0.4187914.3210062972
spa-pustico19-test0.4171415.1210066213
spa-urdtico19-test0.4493115.3210065312

Citation Information

bibtex
@article{tiedemann2023democratizing,
  title={Democratizing neural machine translation with {OPUS-MT}},
  author={Tiedemann, J{\"o}rg and Aulamo, Mikko and Bakshandaeva, Daria and Boggia, Michele and Gr{\"o}nroos, Stig-Arne and Nieminen, Tommi and Raganato, Alessandro and Scherrer, Yves and Vazquez, Raul and Virpioja, Sami},
  journal={Language Resources and Evaluation},
  number={58},
  pages={713--755},
  year={2023},
  publisher={Springer Nature},
  issn={1574-0218},
  doi={10.1007/s10579-023-09704-w}
}

@inproceedings{tiedemann-thottingal-2020-opus,
    title = "{OPUS}-{MT} {--} Building open translation services for the World",
    author = {Tiedemann, J{\"o}rg  and Thottingal, Santhosh},
    booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
    month = nov,
    year = "2020",
    address = "Lisboa, Portugal",
    publisher = "European Association for Machine Translation",
    url = "https://aclanthology.org/2020.eamt-1.61",
    pages = "479--480",
}

@inproceedings{tiedemann-2020-tatoeba,
    title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
    author = {Tiedemann, J{\"o}rg},
    booktitle = "Proceedings of the Fifth Conference on Machine Translation",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2020.wmt-1.139",
    pages = "1174--1182",
}

Acknowledgements

The work is supported by the HPLT project, funded by the European Union’s Horizon Europe research and innovation programme under grant agreement No 101070350. We are also grateful for the generous computational resources and IT infrastructure provided by CSC -- IT Center for Science, Finland, and the EuroHPC supercomputer LUMI.

Model conversion info

  • —transformers version: 4.45.1
  • —OPUS-MT git hash: 0882077
  • —port time: Tue Oct 8 10:05:20 EEST 2024
  • —port machine: LM0-400-22516.local