🚀 opus-mt-tc-big-ar-en
このモデルは、アラビア語(ar)から英語(en)への翻訳を行うためのニューラル機械翻訳モデルです。
[OPUS - MTプロジェクト](https://github.com/Helsinki - NLP/Opus - MT)の一部であり、世界中の多くの言語に対してニューラル機械翻訳モデルを広く利用可能にする取り組みの一環です。
✨ 主な機能
- アラビア語から英語への高精度な翻訳を提供します。
- 多くの言語ペアに対応したOPUS - MTプロジェクトの一員です。
- 公開された学術論文に基づいて開発されています。
📦 インストール
このREADMEには具体的なインストール手順が記載されていないため、このセクションをスキップします。
💻 使用例
基本的な使用法
from transformers import MarianMTModel, MarianTokenizer
src_text = [
"اتبع قلبك فحسب.",
"وين راهي دّوش؟"
]
model_name = "pytorch-models/opus-mt-tc-big-ar-en"
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-ar-en")
print(pipe("اتبع قلبك فحسب."))
📚 ドキュメント
モデル情報
ベンチマーク
言語ペア |
テストセット |
chr - F |
BLEU |
文数 |
単語数 |
ara - eng |
tatoeba - test - v2021 - 08 - 07 |
0.63477 |
47.3 |
10305 |
76975 |
ara - eng |
flores101 - devtest |
0.66987 |
42.6 |
1012 |
24721 |
ara - eng |
tico19 - test |
0.68521 |
44.4 |
2100 |
56323 |
謝辞
この研究は、[European Language Grid](https://www.european - language - grid.eu/)による[pilot project 2866](https://live.european - language - grid.eu/catalogue/#/resource/projects/2866)、[FoTranプロジェクト](https://www.helsinki.fi/en/researchgroups/natural - language - understanding - with - cross - lingual - grounding)(European Research Council (ERC)によるEuropean UnionのHorizon 2020研究およびイノベーションプログラム(grant agreement No 771113)の助成を受けています)、およびMeMADプロジェクト(European UnionのHorizon 2020 Research and Innovation Programme(grant agreement No 780069)の助成を受けています)によって支援されています。また、フィンランドのCSC -- IT Center for Scienceが提供する計算資源とITインフラストラクチャに感謝します。
モデル変換情報
プロパティ |
詳細 |
transformersバージョン |
4.16.2 |
OPUS - MTのgitハッシュ |
3405783 |
ポート時間 |
Wed Apr 13 18:17:57 EEST 2022 |
ポートマシン |
LM0 - 400 - 22516.local |
🔧 技術詳細
このREADMEには具体的な技術詳細が記載されていないため、このセクションをスキップします。
📄 ライセンス
このモデルは、cc - by - 4.0ライセンスの下で公開されています。
引用
@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",
}