🚀 opus-mt-tc-big-de-zle
このモデルは、ドイツ語(de)から東スラブ語(zle)への翻訳を行うためのニューラル機械翻訳モデルです。
[OPUS - MT プロジェクト](https://github.com/Helsinki - NLP/Opus - MT)の一部であり、世界中の多くの言語に対してニューラル機械翻訳モデルを広く利用可能にする取り組みの一環です。すべてのモデルは、最初に[Marian NMT](https://marian - nmt.github.io/)という素晴らしいフレームワークを使用してトレーニングされ、これは純粋なC++で書かれた効率的なNMT実装です。モデルは、huggingfaceのtransformersライブラリを使用してpyTorchに変換されています。トレーニングデータはOPUSから取得され、トレーニングパイプラインは[OPUS - MT - train](https://github.com/Helsinki - NLP/Opus - MT - train)の手順を使用しています。
- 出版物: [OPUS - MT – Building open translation services for the World](https://aclanthology.org/2020.eamt - 1.61/) と [The Tatoeba Translation Challenge – Realistic Data Sets for Low Resource and Multilingual MT](https://aclanthology.org/2020.wmt - 1.139/) (このモデルを使用する場合は、引用してください。)
@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",
}
✨ 主な機能
- ドイツ語から東スラブ語(ベラルーシ語、ロシア語、ウクライナ語)への翻訳が可能です。
- 複数のターゲット言語に対応した多言語翻訳モデルです。
📦 インストール
このREADMEには具体的なインストール手順が記載されていないため、このセクションは省略されます。
💻 使用例
基本的な使用法
from transformers import MarianMTModel, MarianTokenizer
src_text = [
">>ukr<< Der Soldat hat mir Wasser gegeben.",
">>ukr<< Ich will hier nicht essen."
]
model_name = "pytorch-models/opus-mt-tc-big-de-zle"
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) )
高度な使用法
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-de-zle")
print(pipe(">>ukr<< Der Soldat hat mir Wasser gegeben."))
📚 ドキュメント
モデル情報
属性 |
详情 |
リリース日 |
2022 - 03 - 23 |
ソース言語 |
ドイツ語 (deu) |
ターゲット言語 |
ベラルーシ語 (bel), ロシア語 (rus), ウクライナ語 (ukr) |
有効なターゲット言語ラベル |
>>bel<< >>rus<< >>ukr<< |
モデルタイプ |
transformer - big |
トレーニングデータ |
opusTCv20210807 ([ソース](https://github.com/Helsinki - NLP/Tatoeba - Challenge)) |
トークン化 |
SentencePiece (spm32k,spm32k) |
元のモデル |
[opusTCv20210807_transformer - big_2022 - 03 - 23.zip](https://object.pouta.csc.fi/Tatoeba - MT - models/deu - zle/opusTCv20210807_transformer - big_2022 - 03 - 23.zip) |
リリースされたモデルの詳細情報 |
[OPUS - MT deu - zle README](https://github.com/Helsinki - NLP/Tatoeba - Challenge/tree/master/models/deu - zle/README.md) |
モデルに関する詳細情報 |
MarianMT |
これは複数のターゲット言語を持つ多言語翻訳モデルです。文頭に >>id<<
(id = 有効なターゲット言語ID)の形式で言語トークンが必要です。例えば >>bel<<
です。
ベンチマーク
- テストセットの翻訳: [opusTCv20210807_transformer - big_2022 - 03 - 23.test.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/deu - zle/opusTCv20210807_transformer - big_2022 - 03 - 23.test.txt)
- テストセットのスコア: [opusTCv20210807_transformer - big_2022 - 03 - 23.eval.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/deu - zle/opusTCv20210807_transformer - big_2022 - 03 - 23.eval.txt)
- ベンチマーク結果: benchmark_results.txt
- ベンチマーク出力: benchmark_translations.zip
言語ペア |
テストセット |
chr - F |
BLEU |
文数 |
単語数 |
deu - bel |
tatoeba - test - v2021 - 08 - 07 |
0.53128 |
29.5 |
551 |
3601 |
deu - rus |
tatoeba - test - v2021 - 08 - 07 |
0.67143 |
46.1 |
12800 |
87296 |
deu - ukr |
tatoeba - test - v2021 - 08 - 07 |
0.62737 |
40.7 |
10319 |
56287 |
deu - rus |
flores101 - devtest |
0.54152 |
26.3 |
1012 |
23295 |
deu - ukr |
flores101 - devtest |
0.53286 |
24.2 |
1012 |
22810 |
deu - rus |
newstest2012 |
0.49409 |
20.8 |
3003 |
64790 |
deu - rus |
newstest2013 |
0.52631 |
24.9 |
3000 |
58560 |
🔧 技術詳細
このREADMEには具体的な技術詳細が十分に記載されていないため、このセクションは省略されます。
📄 ライセンス
このモデルは cc - by - 4.0 ライセンスの下で提供されています。
謝辞
この作業は、[European Language Grid](https://www.european - language - grid.eu/)による[pilot project 2866](https://live.european - language - grid.eu/catalogue/#/resource/projects/2866)、[FoTran project](https://www.helsinki.fi/en/researchgroups/natural - language - understanding - with - cross - lingual - grounding)(欧州研究評議会(ERC)による欧州連合のHorizon 2020研究・イノベーションプログラム(助成協定番号771113)によって資金提供されています)、およびMeMAD project(欧州連合のHorizon 2020研究・イノベーションプログラムによる助成協定番号780069によって資金提供されています)によって支援されています。また、フィンランドのCSC -- IT Center for Scienceによって提供される寛大な計算資源とITインフラストラクチャに感謝しています。
モデル変換情報
属性 |
详情 |
transformersバージョン |
4.16.2 |
OPUS - MTのgitハッシュ |
1bdabf7 |
ポート時間 |
Thu Mar 24 01:29:09 EET 2022 |
ポートマシン |
LM0 - 400 - 22516.local |