CoolFace
Modelpublic

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

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

opus-mt-tc-bible-big-ira-deuengfraporspa

Table of Contents

Model Details

Neural machine translation model for translating from Iranian languages (ira) 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-ira-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-ira-deu_eng_fra_por_spa")
print(pipe(">>deu<< Replace this with text in an accepted source language."))

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
fas-deutatoeba-test-v2021-08-070.5973736.1318525590
fas-engtatoeba-test-v2021-08-070.5987135.8376231480
fas-fratatoeba-test-v2021-08-070.5809536.33763377
kur_Latn-deutatoeba-test-v2021-08-070.4027624.92231323
pes-engtatoeba-test-v2021-08-070.6071742.3375731411
ckb-deuflores101-devtest0.4011711.6101225094
ckb-engflores101-devtest0.4832121.6101224721
ckb-fraflores101-devtest0.4426017.2101228343
ckb-porflores101-devtest0.4317916.2101226519
fas-engflores101-devtest0.6113434.4101224721
pus-engflores101-devtest0.4955622.7101224721
pus-fraflores101-devtest0.4524817.8101228343
tgk-engflores101-devtest0.5363025.4101224721
tgk-fraflores101-devtest0.4908421.0101228343
tgk-spaflores101-devtest0.4352415.5101229199
ckb-deuflores200-devtest0.4036911.7101225094
ckb-engflores200-devtest0.4844721.5101224721
ckb-fraflores200-devtest0.4402617.1101228343
ckb-porflores200-devtest0.4319216.4101226519
pes-deuflores200-devtest0.5154221.5101225094
pes-engflores200-devtest0.6137234.9101224721
pes-fraflores200-devtest0.5634729.2101228343
pes-porflores200-devtest0.5567628.5101226519
pes-spaflores200-devtest0.4833419.8101229199
prs-deuflores200-devtest0.5056221.2101225094
prs-engflores200-devtest0.6071635.1101224721
prs-fraflores200-devtest0.5476927.8101228343
prs-porflores200-devtest0.5407327.2101226519
prs-spaflores200-devtest0.4685018.6101229199
tgk-deuflores200-devtest0.4311514.2101225094
tgk-engflores200-devtest0.5370525.6101224721
tgk-fraflores200-devtest0.4890220.7101228343
tgk-porflores200-devtest0.4851920.7101226519
tgk-spaflores200-devtest0.4356315.7101229199
fas-deuntrex1280.4740816.7199748761
fas-engntrex1280.5535026.4199747673
fas-frantrex1280.5031122.1199753481
fas-porntrex1280.4800519.1199751631
fas-spantrex1280.5097323.6199754107
prs-deuntrex1280.4519114.9199748761
prs-engntrex1280.5476126.6199747673
prs-frantrex1280.4781919.9199753481
prs-porntrex1280.4624117.4199751631
prs-spantrex1280.4871221.4199754107
pus-engntrex1280.4390117.4199747673
pus-spantrex1280.4081214.1199754107
tgk_Cyrl-engntrex1280.4683918.6199747673
tgk_Cyrl-frantrex1280.4256915.1199753481
tgk_Cyrl-porntrex1280.4163213.7199751631
tgk_Cyrl-spantrex1280.4376316.8199754107
ckb-engtico19-test0.6190540.1210056315
ckb-fratico19-test0.4507019.7210064661
ckb-portico19-test0.4961722.9210062729
ckb-spatico19-test0.5054324.9210066563
fas-engtico19-test0.6401637.3210056315
fas-fratico19-test0.5331926.1210064661
fas-portico19-test0.5800830.6210062729
fas-spatico19-test0.5923933.3210066563
prs-engtico19-test0.6170234.8210056824
prs-fratico19-test0.5121824.0210064661
prs-portico19-test0.5588828.6210062729
prs-spatico19-test0.5749431.1210066563
pus-engtico19-test0.5758632.1210056315
pus-fratico19-test0.4609119.2210064661
pus-portico19-test0.5103324.1210062729
pus-spatico19-test0.5185725.9210066563

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