🚀 opus-mt-tc-big-en-es
このモデルは、英語(en)からスペイン語(es)への翻訳を行うためのニューラル機械翻訳モデルです。
世界中の多くの言語に対してニューラル機械翻訳モデルを広く利用可能かつアクセスしやすくする取り組みである[OPUS - MTプロジェクト](https://github.com/Helsinki - NLP/Opus - MT)の一部です。
🚀 クイックスタート
このモデルは、英語からスペイン語への翻訳に使用できます。以下に簡単な使用例を示します。
from transformers import MarianMTModel, MarianTokenizer
src_text = [
"A wasp stung him and he had an allergic reaction.",
"I love nature."
]
model_name = "pytorch - models/opus - mt - tc - big - en - es"
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) )
また、transformersのパイプラインを使用することもできます。
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki - NLP/opus - mt - tc - big - en - es")
print(pipe("A wasp stung him and he had an allergic reaction."))
✨ 主な機能
- 英語からスペイン語への高精度なニューラル機械翻訳を提供します。
- 様々なデータセットでの良好な性能を示しています。
📚 ドキュメント
モデル情報
属性 |
详情 |
リリース日 |
2022 - 03 - 13 |
ソース言語 |
英語 (eng) |
ターゲット言語 |
スペイン語 (spa) |
モデルタイプ |
transformer - big |
訓練データ |
opusTCv20210807+bt ([ソース](https://github.com/Helsinki - NLP/Tatoeba - Challenge)) |
トークン化 |
SentencePiece (spm32k,spm32k) |
オリジナルモデル |
[opusTCv20210807+bt_transformer - big_2022 - 03 - 13.zip](https://object.pouta.csc.fi/Tatoeba - MT - models/eng - spa/opusTCv20210807+bt_transformer - big_2022 - 03 - 13.zip) |
詳細情報 |
[OPUS - MT eng - spa README](https://github.com/Helsinki - NLP/Tatoeba - Challenge/tree/master/models/eng - spa/README.md) |
ベンチマーク
- テストセットの翻訳結果: [opusTCv20210807+bt_transformer - big_2022 - 03 - 13.test.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/eng - spa/opusTCv20210807+bt_transformer - big_2022 - 03 - 13.test.txt)
- テストセットのスコア: [opusTCv20210807+bt_transformer - big_2022 - 03 - 13.eval.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/eng - spa/opusTCv20210807+bt_transformer - big_2022 - 03 - 13.eval.txt)
- ベンチマーク結果: benchmark_results.txt
- ベンチマーク出力: benchmark_translations.zip
言語ペア |
テストセット |
chr - F |
BLEU |
文数 |
単語数 |
eng - spa |
tatoeba - test - v2021 - 08 - 07 |
0.73863 |
57.2 |
16583 |
134710 |
eng - spa |
flores101 - devtest |
0.56440 |
28.5 |
1012 |
29199 |
eng - spa |
newssyscomb2009 |
0.58415 |
31.5 |
502 |
12503 |
eng - spa |
news - test2008 |
0.56707 |
30.1 |
2051 |
52586 |
eng - spa |
newstest2009 |
0.57836 |
30.2 |
2525 |
68111 |
eng - spa |
newstest2010 |
0.62357 |
37.6 |
2489 |
65480 |
eng - spa |
newstest2011 |
0.62415 |
38.9 |
3003 |
79476 |
eng - spa |
newstest2012 |
0.63031 |
39.5 |
3003 |
79006 |
eng - spa |
newstest2013 |
0.60354 |
35.9 |
3000 |
70528 |
eng - spa |
tico19 - test |
0.73554 |
53.0 |
2100 |
66563 |
謝辞
この研究は、[European Language Grid](https://www.european - language - grid.eu/)の[pilot project 2866](https://live.european - language - grid.eu/catalogue/#/resource/projects/2866)、欧州研究評議会(ERC)による欧州連合のHorizon 2020研究・イノベーションプログラム(助成契約番号771113)の助成を受けた[FoTranプロジェクト](https://www.helsinki.fi/en/researchgroups/natural - language - understanding - with - cross - lingual - grounding)、および欧州連合のHorizon 2020研究・イノベーションプログラム(助成契約番号780069)の助成を受けたMeMADプロジェクトによって支援されています。また、フィンランドのCSC -- IT Center for Scienceによって提供される豊富な計算資源とITインフラストラクチャに感謝します。
モデル変換情報
属性 |
详情 |
transformersバージョン |
4.16.2 |
OPUS - MTのgitハッシュ |
3405783 |
ポート時間 |
Wed Apr 13 18:03:53 EEST 2022 |
ポートマシン |
LM0 - 400 - 22516.local |
引用
このモデルを使用する場合は、以下の出版物を引用してください。
@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",
}
📄 ライセンス
このモデルは、CC - BY - 4.0ライセンスの下で提供されています。