CoolFace
Modelpublic

WindstormLabs/origin-Helsinki-NLP-opus-mt-tc-bible-big-deu_eng_fra_por_spa-itc

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes14downloads
Model Card

opus-mt-tc-bible-big-deuengfraporspa-itc

Table of Contents

Model Details

Neural machine translation model for translating from unknown (deu+eng+fra+por+spa) to Italic languages (itc).

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): acf arg ast cat cbk cos crs egl ext fra frm fro frp fur gcf glg hat ita kea lad lat lij lld lmo lou mfe mol mwl nap oci osp pap pcd pms por roh ron rup scn spa srd vec wln
  • —Valid Target Language Labels: >>acf<< >>aoa<< >>arg<< >>ast<< >>cat<< >>cbk<< >>cbkLatn<< >>ccd<< >>cks<< >>cos<< >>cri<< >>crs<< >>dlm<< >>drc<< >>egl<< >>ext<< >>fab<< >>fax<< >>fra<< >>frc<< >>frm<< >>frmLatn<< >>fro<< >>froLatn<< >>frp<< >>fur<< >>gcf<< >>gcfLatn<< >>gcr<< >>glg<< >>hat<< >>idb<< >>ist<< >>ita<< >>itk<< >>kea<< >>kmv<< >>lad<< >>ladLatn<< >>lat<< >>latLatn<< >>lij<< >>lld<< >>lldLatn<< >>lmo<< >>lou<< >>louLatn<< >>mcm<< >>mfe<< >>mol<< >>mwl<< >>mxi<< >>mzs<< >>nap<< >>nrf<< >>oci<< >>osc<< >>osp<< >>osp_Latn<< >>pap<< >>pcd<< >>pln<< >>pms<< >>por<< >>pov<< >>pre<< >>pro<< >>rcf<< >>rgn<< >>roh<< >>ron<< >>ruo<< >>rup<< >>ruq<< >>scf<< >>scn<< >>spa<< >>spq<< >>spx<< >>srd<< >>tmg<< >>tvy<< >>vec<< >>vkp<< >>wln<< >>xfa<< >>xum<< >>xxx<<
  • —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. >>acf<<

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 = [
    ">>acf<< Replace this with text in an accepted source language.",
    ">>wln<< This is the second sentence."
]

model_name = "pytorch-models/opus-mt-tc-bible-big-deu_eng_fra_por_spa-itc"
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-itc")
print(pipe(">>acf<< Replace this with text in an accepted source language."))

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
deu-cattatoeba-test-v2021-08-070.6346544.37235539
deu-fratatoeba-test-v2021-08-070.6825850.712418102721
deu-itatatoeba-test-v2021-08-070.6850247.41009475504
deu-ladtatoeba-test-v2021-08-070.3804722.02201130
deu-lattatoeba-test-v2021-08-070.4256716.2201610538
deu-portatoeba-test-v2021-08-070.6368443.11000081482
deu-rontatoeba-test-v2021-08-070.6420742.611417432
deu-spatatoeba-test-v2021-08-070.6833349.41052182570
eng-cattatoeba-test-v2021-08-070.6772449.1163112344
eng-fratatoeba-test-v2021-08-070.6877751.612681106378
eng-glgtatoeba-test-v2021-08-070.6453045.210157881
eng-itatatoeba-test-v2021-08-070.7211553.317320116336
eng-ladtatoeba-test-v2021-08-070.4385724.27684105
eng-lad_Latntatoeba-test-v2021-08-070.5084827.66723580
eng-lattatoeba-test-v2021-08-070.4571020.01029876510
eng-portatoeba-test-v2021-08-070.7215953.413222105265
eng-rontatoeba-test-v2021-08-070.6783547.1550840367
eng-spatatoeba-test-v2021-08-070.7287555.816583134710
fra-cattatoeba-test-v2021-08-070.6554744.67005342
fra-fratatoeba-test-v2021-08-070.6165039.910007757
fra-itatatoeba-test-v2021-08-070.7273953.51009162060
fra-portatoeba-test-v2021-08-070.7065552.01051877650
fra-rontatoeba-test-v2021-08-070.6539943.7192512252
fra-spatatoeba-test-v2021-08-070.7208354.81029478406
por-cattatoeba-test-v2021-08-070.7117852.07476149
por-fratatoeba-test-v2021-08-070.7569160.41051880459
por-glgtatoeba-test-v2021-08-070.7481857.64333016
por-itatatoeba-test-v2021-08-070.7689958.7306624897
por-portatoeba-test-v2021-08-070.7177551.0250019220
por-rontatoeba-test-v2021-08-070.6951747.86814521
por-spatatoeba-test-v2021-08-070.7944264.91094787335
spa-cattatoeba-test-v2021-08-070.8184566.3153412343
spa-fratatoeba-test-v2021-08-070.7327757.41029483501
spa-glgtatoeba-test-v2021-08-070.7611861.5212116581
spa-itatatoeba-test-v2021-08-070.7674259.5500034515
spa-ladtatoeba-test-v2021-08-070.4306423.42761464
spa-lad_Latntatoeba-test-v2021-08-070.5079527.12391254
spa-lattatoeba-test-v2021-08-070.4404418.8312927685
spa-portatoeba-test-v2021-08-070.7695160.71094787610
spa-rontatoeba-test-v2021-08-070.6778245.9195912503
spa-spatatoeba-test-v2021-08-070.6734649.6250021469
deu-astflores101-devtest0.5323021.5101224572
deu-catflores101-devtest0.5846631.6101227304
deu-fraflores101-devtest0.6237036.5101228343
deu-glgflores101-devtest0.5569328.0101226582
deu-ociflores101-devtest0.5225322.3101227305
deu-porflores101-devtest0.6068834.8101226519
deu-ronflores101-devtest0.5733330.3101226799
eng-catflores101-devtest0.6660742.5101227304
eng-fraflores101-devtest0.7049248.8101228343
eng-porflores101-devtest0.7111249.3101226519
eng-ronflores101-devtest0.6485640.3101226799
fra-ociflores101-devtest0.5855929.2101227305
fra-ronflores101-devtest0.5892232.1101226799
por-keaflores101-devtest0.4077912.8101225540
por-ociflores101-devtest0.5701627.5101227305
spa-astflores101-devtest0.4966616.3101224572
spa-catflores101-devtest0.5401523.2101227304
spa-glgflores101-devtest0.5292322.1101226582
spa-ociflores101-devtest0.4928517.2101227305
spa-porflores101-devtest0.5594425.7101226519
spa-ronflores101-devtest0.5328223.3101226799
deu-astflores200-devtest0.5378222.1101224572
deu-catflores200-devtest0.5884632.2101227304
deu-fraflores200-devtest0.6280337.2101228343
deu-furflores200-devtest0.4637218.7101229171
deu-glgflores200-devtest0.5622928.7101226582
deu-hatflores200-devtest0.4675215.7101225833
deu-itaflores200-devtest0.5534425.8101227306
deu-lijflores200-devtest0.4073211.8101228625
deu-ociflores200-devtest0.5274923.1101227305
deu-papflores200-devtest0.4972122.4101228016
deu-porflores200-devtest0.6081834.7101226519
deu-ronflores200-devtest0.5787331.1101226799
deu-spaflores200-devtest0.5244224.4101229199
deu-srdflores200-devtest0.4562916.1101228322
eng-astflores200-devtest0.5925527.8101224572
eng-catflores200-devtest0.6680942.8101227304
eng-fraflores200-devtest0.7100149.5101228343
eng-furflores200-devtest0.4916423.0101229171
eng-glgflores200-devtest0.6234936.1101226582
eng-hatflores200-devtest0.5172021.3101225833
eng-itaflores200-devtest0.5889829.7101227306
eng-lijflores200-devtest0.4364414.8101228625
eng-ociflores200-devtest0.6324535.2101227305
eng-papflores200-devtest0.5677530.4101228016
eng-porflores200-devtest0.7143850.0101226519
eng-ronflores200-devtest0.6537341.2101226799
eng-spaflores200-devtest0.5578427.6101229199
eng-srdflores200-devtest0.4987621.0101228322
fra-astflores200-devtest0.5390422.0101224572
fra-catflores200-devtest0.6054934.5101227304
fra-furflores200-devtest0.4911921.4101229171
fra-glgflores200-devtest0.5799831.3101226582
fra-hatflores200-devtest0.5201820.7101225833
fra-itaflores200-devtest0.5647027.0101227306
fra-lijflores200-devtest0.4318013.6101228625
fra-ociflores200-devtest0.5826829.2101227305
fra-papflores200-devtest0.5102923.6101228016
fra-porflores200-devtest0.6254037.5101226519
fra-ronflores200-devtest0.5925532.7101226799
fra-spaflores200-devtest0.5300124.4101229199
fra-srdflores200-devtest0.4764517.9101228322
por-astflores200-devtest0.5536923.9101224572
por-catflores200-devtest0.6198136.4101227304
por-fraflores200-devtest0.6465440.4101228343
por-furflores200-devtest0.5007822.1101229171
por-glgflores200-devtest0.5833631.1101226582
por-hatflores200-devtest0.4883418.0101225833
por-itaflores200-devtest0.5607726.7101227306
por-keaflores200-devtest0.4245113.6101225540
por-lijflores200-devtest0.4371513.4101228625
por-ociflores200-devtest0.5714328.1101227305
por-papflores200-devtest0.5219225.0101228016
por-ronflores200-devtest0.5996234.2101226799
por-spaflores200-devtest0.5377225.6101229199
por-srdflores200-devtest0.4888218.8101228322
spa-astflores200-devtest0.4951216.3101224572
spa-catflores200-devtest0.5396823.1101227304
spa-fraflores200-devtest0.5746127.9101228343
spa-furflores200-devtest0.4578516.1101229171
spa-glgflores200-devtest0.5293322.2101226582
spa-hatflores200-devtest0.4462713.0101225833
spa-itaflores200-devtest0.5306322.4101227306
spa-ociflores200-devtest0.4929317.4101227305
spa-papflores200-devtest0.4659517.7101228016
spa-porflores200-devtest0.5613825.9101226519
spa-ronflores200-devtest0.5360923.8101226799
spa-srdflores200-devtest0.4489813.3101228322
deu-frageneraltest20220.6063437.4198438276
deu-framulti30ktest2016_flickr0.6259538.5100013505
eng-framulti30ktest2016_flickr0.7163051.4100013505
deu-framulti30ktest2017_flickr0.6273337.3100012118
eng-framulti30ktest2017_flickr0.7185050.8100012118
deu-framulti30ktest2017_mscoco0.5908933.84615484
eng-framulti30ktest2017_mscoco0.7312954.14615484
deu-framulti30ktest2018_flickr0.5715530.9107115867
eng-framulti30ktest2018_flickr0.6546141.9107115867
eng-franewsdiscusstest20150.6366038.5150027975
deu-franewssyscomb20090.5603527.650212331
deu-itanewssyscomb20090.5572225.150211551
deu-spanewssyscomb20090.5559528.550212503
eng-franewssyscomb20090.5846529.550212331
eng-itanewssyscomb20090.6079231.350211551
eng-spanewssyscomb20090.5821931.050212503
fra-itanewssyscomb20090.6135231.950211551
fra-spanewssyscomb20090.6043034.350212503
spa-franewssyscomb20090.6149134.650212331
spa-itanewssyscomb20090.6186133.750211551
deu-franewstest20080.5492626.3205152685
deu-spanewstest20080.5390225.5205152586
eng-franewstest20080.5535826.8205152685
eng-spanewstest20080.5649129.5205152586
fra-spanewstest20080.5876433.0205152586
spa-franewstest20080.5884832.4205152685
deu-franewstest20090.5387025.4252569263
deu-itanewstest20090.5450924.4252563466
deu-spanewstest20090.5376925.7252568111
eng-franewstest20090.5756629.3252569263
eng-itanewstest20090.6037231.4252563466
eng-spanewstest20090.5791330.0252568111
fra-itanewstest20090.5974930.5252563466
fra-spanewstest20090.5892132.1252568111
spa-franewstest20090.5919532.3252569263
spa-itanewstest20090.6100733.0252563466
deu-franewstest20100.5788829.5248966022
deu-spanewstest20100.5940832.7248965480
eng-franewstest20100.5958832.4248966022
eng-spanewstest20100.6197836.6248965480
fra-spanewstest20100.6251337.7248965480
spa-franewstest20100.6219336.1248966022
deu-franewstest20110.5570427.5300380626
deu-spanewstest20110.5669630.4300379476
eng-franewstest20110.6107134.3300380626
eng-spanewstest20110.6212638.7300379476
fra-spanewstest20110.6313940.0300379476
spa-franewstest20110.6125835.2300380626
deu-franewstest20120.5603427.6300378011
deu-spanewstest20120.5733631.6300379006
eng-franewstest20120.5926431.9300378011
eng-spanewstest20120.6256839.1300379006
fra-spanewstest20120.6272539.5300379006
spa-franewstest20120.6117734.2300378011
deu-franewstest20130.5647529.9300070037
deu-spanewstest20130.5718731.9300070528
eng-franewstest20130.5893833.3300070037
eng-spanewstest20130.5981735.2300070528
fra-spanewstest20130.5948235.1300070528
spa-franewstest20130.5982533.9300070037
eng-franewstest20140.6543840.2300377306
eng-ronnewstest20160.5947332.2199948945
deu-franewstest20190.6283135.9170142509
deu-franewstest20200.6040833.0161936890
deu-franewstest20210.5891331.3100023757
deu-catntrex1280.5503328.2199753438
deu-frantrex1280.5585428.5199753481
deu-glgntrex1280.5503427.8199750432
deu-itantrex1280.5573326.6199750759
deu-porntrex1280.5420826.0199751631
deu-ronntrex1280.5283926.6199753498
deu-spantrex1280.5696630.8199754107
eng-catntrex1280.6143136.3199753438
eng-frantrex1280.6169535.5199753481
eng-glgntrex1280.6239037.2199750432
eng-itantrex1280.6220936.1199750759
eng-porntrex1280.5985933.5199751631
eng-ronntrex1280.5812833.4199753498
eng-spantrex1280.6409940.3199754107
fra-catntrex1280.5509328.1199753438
fra-glgntrex1280.5532528.0199750432
fra-itantrex1280.5618827.4199750759
fra-porntrex1280.5400125.6199751631
fra-ronntrex1280.5185324.8199753498
fra-spantrex1280.5711631.0199754107
por-catntrex1280.5796231.6199753438
por-frantrex1280.5691028.9199753481
por-glgntrex1280.5738930.3199750432
por-itantrex1280.5878830.6199750759
por-ronntrex1280.5427628.0199753498
por-spantrex1280.5956534.2199754107
spa-catntrex1280.6060534.0199753438
spa-frantrex1280.5750129.6199753481
spa-glgntrex1280.6130034.4199750432
spa-itantrex1280.5786828.9199750759
spa-porntrex1280.5673029.1199751631
spa-ronntrex1280.5422227.9199753498
eng-fratico19-test0.6298940.1210064661
eng-portico19-test0.7270850.0210062729
eng-spatico19-test0.7315452.0210066563
fra-portico19-test0.5838334.1210062729
fra-spatico19-test0.5958137.0210066563
por-fratico19-test0.5979834.4210064661
por-spatico19-test0.6833245.4210066563
spa-fratico19-test0.6046935.5210064661
spa-portico19-test0.6789842.8210062729

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:16:22 EEST 2024
  • —port machine: LM0-400-22516.local