CoolFace
Modelpublic

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

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

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

Table of Contents

Model Details

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

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:

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. >>deu<<

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

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

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
awa-engtatoeba-test-v2021-08-070.6024040.82791335
ben-engtatoeba-test-v2021-08-070.6447149.3250013978
fas-deutatoeba-test-v2021-08-070.5863134.7318525590
fas-engtatoeba-test-v2021-08-070.5986841.8376231480
fas-fratatoeba-test-v2021-08-070.5718135.83763377
hin-engtatoeba-test-v2021-08-070.6541749.5500033943
kur_Latn-deutatoeba-test-v2021-08-070.4269427.02231323
kur_Latn-engtatoeba-test-v2021-08-070.4272125.62901708
mar-engtatoeba-test-v2021-08-070.6449348.31039667527
pes-engtatoeba-test-v2021-08-070.5995941.9375731411
urd-engtatoeba-test-v2021-08-070.5367935.4166312029
ben-deuflores101-devtest0.4687316.4101225094
ben-engflores101-devtest0.5750830.0101224721
ben-spaflores101-devtest0.4401015.1101229199
ckb-deuflores101-devtest0.4154613.0101225094
ckb-porflores101-devtest0.4417817.6101226519
fas-porflores101-devtest0.5407726.1101226519
guj-deuflores101-devtest0.4590616.5101225094
guj-spaflores101-devtest0.4392815.2101229199
hin-engflores101-devtest0.6280736.6101224721
hin-porflores101-devtest0.5282525.1101226519
mar-deuflores101-devtest0.4476714.8101225094
npi-deuflores101-devtest0.4617815.9101225094
pan-fraflores101-devtest0.5090923.4101228343
pan-porflores101-devtest0.5063423.0101226519
pus-deuflores101-devtest0.4264513.5101225094
pus-fraflores101-devtest0.4571918.0101228343
urd-deuflores101-devtest0.4610216.5101225094
urd-engflores101-devtest0.5635628.4101224721
asm-engflores200-devtest0.4858921.5101224721
awa-deuflores200-devtest0.4707116.0101225094
awa-engflores200-devtest0.5306926.6101224721
awa-fraflores200-devtest0.4970021.1101228343
awa-porflores200-devtest0.4995021.8101226519
awa-spaflores200-devtest0.4383115.4101229199
ben-deuflores200-devtest0.4743417.0101225094
ben-engflores200-devtest0.5840831.4101224721
ben-fraflores200-devtest0.5093023.2101228343
ben-porflores200-devtest0.5066122.4101226519
ben-spaflores200-devtest0.4448515.7101229199
bho-deuflores200-devtest0.4246312.8101225094
bho-engflores200-devtest0.5054522.6101224721
bho-fraflores200-devtest0.4526417.4101228343
bho-porflores200-devtest0.4473717.0101226519
bho-spaflores200-devtest0.4058513.0101229199
ckb-deuflores200-devtest0.4211013.6101225094
ckb-engflores200-devtest0.5054324.7101224721
ckb-fraflores200-devtest0.4584719.1101228343
ckb-porflores200-devtest0.4456717.8101226519
guj-deuflores200-devtest0.4675817.3101225094
guj-engflores200-devtest0.6113934.4101224721
guj-fraflores200-devtest0.5034922.5101228343
guj-porflores200-devtest0.4982822.4101226519
guj-spaflores200-devtest0.4447215.5101229199
hin-deuflores200-devtest0.5077220.8101225094
hin-engflores200-devtest0.6323437.3101224721
hin-fraflores200-devtest0.5393326.5101228343
hin-porflores200-devtest0.5352326.1101226519
hin-spaflores200-devtest0.4618317.4101229199
hne-deuflores200-devtest0.4994619.0101225094
hne-engflores200-devtest0.6364038.1101224721
hne-fraflores200-devtest0.5341925.7101228343
hne-porflores200-devtest0.5373525.9101226519
hne-spaflores200-devtest0.4561016.9101229199
mag-deuflores200-devtest0.5068120.0101225094
mag-engflores200-devtest0.6396638.0101224721
mag-fraflores200-devtest0.5381025.9101228343
mag-porflores200-devtest0.5406526.6101226519
mag-spaflores200-devtest0.4613117.1101229199
mai-deuflores200-devtest0.4768616.8101225094
mai-engflores200-devtest0.5755230.2101224721
mai-fraflores200-devtest0.5090922.4101228343
mai-porflores200-devtest0.5124922.9101226519
mai-spaflores200-devtest0.4469415.9101229199
mar-deuflores200-devtest0.4529514.8101225094
mar-engflores200-devtest0.5820331.0101224721
mar-fraflores200-devtest0.4825420.4101228343
mar-porflores200-devtest0.4836820.4101226519
mar-spaflores200-devtest0.4279914.7101229199
npi-deuflores200-devtest0.4726717.2101225094
npi-engflores200-devtest0.5955932.5101224721
npi-fraflores200-devtest0.5086922.5101228343
npi-porflores200-devtest0.5090022.5101226519
npi-spaflores200-devtest0.4430415.6101229199
pan-deuflores200-devtest0.4834218.6101225094
pan-engflores200-devtest0.6032833.4101224721
pan-fraflores200-devtest0.5195324.4101228343
pan-porflores200-devtest0.5142823.9101226519
pan-spaflores200-devtest0.4461516.3101229199
pes-deuflores200-devtest0.5112421.0101225094
pes-engflores200-devtest0.6053833.7101224721
pes-fraflores200-devtest0.5515727.8101228343
pes-porflores200-devtest0.5437226.6101226519
pes-spaflores200-devtest0.4756118.8101229199
prs-deuflores200-devtest0.5027320.7101225094
prs-engflores200-devtest0.6014434.5101224721
prs-fraflores200-devtest0.5424127.0101228343
prs-porflores200-devtest0.5356226.6101226519
prs-spaflores200-devtest0.4649718.1101229199
sin-deuflores200-devtest0.4504114.7101225094
sin-engflores200-devtest0.5406026.3101224721
sin-fraflores200-devtest0.4816319.9101228343
sin-porflores200-devtest0.4778019.6101226519
sin-spaflores200-devtest0.4254614.2101229199
tgk-deuflores200-devtest0.4520315.6101225094
tgk-engflores200-devtest0.5374025.3101224721
tgk-fraflores200-devtest0.5015322.1101228343
tgk-porflores200-devtest0.4937821.9101226519
tgk-spaflores200-devtest0.4409915.9101229199
urd-deuflores200-devtest0.4689417.2101225094
urd-engflores200-devtest0.5696729.3101224721
urd-fraflores200-devtest0.5061622.6101228343
urd-porflores200-devtest0.4939821.7101226519
urd-spaflores200-devtest0.4380015.4101229199
hin-engnewstest20140.5902430.3250755571
guj-engnewstest20190.5397727.2101617757
ben-deuntrex1280.4555115.0199748761
ben-engntrex1280.5687829.0199747673
ben-frantrex1280.4707718.6199753481
ben-porntrex1280.4604917.1199751631
ben-spantrex1280.4883321.3199754107
fas-deuntrex1280.4699116.1199748761
fas-engntrex1280.5511925.9199747673
fas-frantrex1280.4962621.2199753481
fas-porntrex1280.4749918.6199751631
fas-spantrex1280.5017822.8199754107
guj-deuntrex1280.4399814.3199748761
guj-engntrex1280.5848131.0199747673
guj-frantrex1280.4546817.3199753481
guj-porntrex1280.4422315.8199751631
guj-spantrex1280.4779820.7199754107
hin-deuntrex1280.4658015.0199748761
hin-engntrex1280.5983231.6199747673
hin-frantrex1280.4832819.5199753481
hin-porntrex1280.4683317.8199751631
hin-spantrex1280.4951721.9199754107
mar-deuntrex1280.4371313.5199748761
mar-engntrex1280.5513227.4199747673
mar-frantrex1280.4479716.9199753481
mar-porntrex1280.4434216.1199751631
mar-spantrex1280.4695019.7199754107
nep-deuntrex1280.4356813.5199748761
nep-engntrex1280.5595428.8199747673
nep-frantrex1280.4508316.9199753481
nep-porntrex1280.4445816.0199751631
nep-spantrex1280.4683219.4199754107
pan-deuntrex1280.4432714.6199748761
pan-engntrex1280.5766530.5199747673
pan-frantrex1280.4581517.7199753481
pan-porntrex1280.4460816.3199751631
pan-spantrex1280.4728920.0199754107
prs-deuntrex1280.4506714.6199748761
prs-engntrex1280.5476726.6199747673
prs-frantrex1280.4745319.3199753481
prs-porntrex1280.4584317.1199751631
prs-spantrex1280.4831720.9199754107
pus-engntrex1280.4469817.6199747673
pus-spantrex1280.4113214.6199754107
sin-deuntrex1280.4254112.5199748761
sin-engntrex1280.5185323.5199747673
sin-frantrex1280.4409915.9199753481
sin-porntrex1280.4301014.4199751631
sin-spantrex1280.4622518.4199754107
tgk_Cyrl-deuntrex1280.4036811.4199748761
tgk_Cyrl-engntrex1280.4713218.2199747673
tgk_Cyrl-frantrex1280.4331115.8199753481
tgk_Cyrl-porntrex1280.4209513.8199751631
tgk_Cyrl-spantrex1280.4427917.3199754107
urd-deuntrex1280.4570815.5199748761
urd-engntrex1280.5656028.5199747673
urd-frantrex1280.4753619.0199753481
urd-porntrex1280.4591116.7199751631
urd-spantrex1280.4898621.6199754107
ben-engtico19-test0.6457838.7210056824
ben-fratico19-test0.5016522.8210064661
ben-portico19-test0.5566227.7210062729
ben-spatico19-test0.5679529.6210066563
ckb-engtico19-test0.5162327.4210056315
ckb-fratico19-test0.4240517.1210064661
ckb-portico19-test0.4540519.0210062729
ckb-spatico19-test0.4697621.7210066563
fas-engtico19-test0.6207934.2210056315
fas-fratico19-test0.5204124.4210064661
fas-portico19-test0.5678029.2210062729
fas-spatico19-test0.5824832.3210066563
hin-engtico19-test0.7053546.8210056323
hin-fratico19-test0.5383326.6210064661
hin-portico19-test0.6024633.2210062729
hin-spatico19-test0.6150435.7210066563
mar-engtico19-test0.5924731.4210056315
mar-fratico19-test0.4689519.3210064661
mar-portico19-test0.5194523.8210062729
mar-spatico19-test0.5291426.2210066563
nep-engtico19-test0.6586540.1210056824
nep-fratico19-test0.5047323.2210064661
nep-portico19-test0.5618528.0210062729
nep-spatico19-test0.5727030.2210066563
prs-engtico19-test0.5953632.1210056824
prs-fratico19-test0.5004423.1210064661
prs-portico19-test0.5444827.3210062729
prs-spatico19-test0.5631130.2210066563
pus-engtico19-test0.5671131.4210056315
pus-fratico19-test0.4595119.4210064661
pus-portico19-test0.5022523.7210062729
pus-spatico19-test0.5124625.4210066563
urd-engtico19-test0.5778630.8210056315
urd-fratico19-test0.4680720.1210064661
urd-portico19-test0.5156724.1210062729
urd-spatico19-test0.5282026.4210066563

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