🚀 opus-mt-tc-big-en-fi
このモデルは、英語(en)からフィンランド語(fi)への翻訳を行うニューラル機械翻訳モデルです。OPUS-MTプロジェクトの一部として、世界中の多くの言語に対して広く利用可能な機械翻訳モデルを提供する取り組みの一環です。
🚀 クイックスタート
このモデルを使って英語からフィンランド語への翻訳を行うには、以下の手順に従ってください。
基本的な使用法
from transformers import MarianMTModel, MarianTokenizer
src_text = [
"Russia is big.",
"Touch wood!"
]
model_name = "pytorch-models/opus-mt-tc-big-en-fi"
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-en-fi")
print(pipe("Russia is big."))
✨ 主な機能
- 英語からフィンランド語への高精度な翻訳を提供します。
- 複数のターゲット言語をサポートする多言語翻訳モデルです。
📦 インストール
このモデルは、Hugging Faceのtransformers
ライブラリを使って簡単にインストールできます。必要な依存関係をインストールすることで、すぐに使用できます。
📚 ドキュメント
モデル情報
ベンチマーク
言語ペア |
テストセット |
chr-F |
BLEU |
文数 |
単語数 |
eng-fin |
tatoeba-test-v2021-08-07 |
0.64352 |
39.3 |
10690 |
65122 |
eng-fin |
flores101-devtest |
0.61334 |
27.6 |
1012 |
18781 |
eng-fin |
newsdev2015 |
0.58367 |
24.2 |
1500 |
23091 |
eng-fin |
newstest2015 |
0.60080 |
26.4 |
1370 |
19735 |
eng-fin |
newstest2016 |
0.61636 |
28.8 |
3000 |
47678 |
eng-fin |
newstest2017 |
0.64381 |
31.3 |
3002 |
45269 |
eng-fin |
newstest2018 |
0.55626 |
19.7 |
3000 |
44836 |
eng-fin |
newstest2019 |
0.58420 |
26.4 |
1997 |
38369 |
eng-fin |
newstestB2016 |
0.57554 |
23.3 |
3000 |
45766 |
eng-fin |
newstestB2017 |
0.60212 |
26.8 |
3002 |
45506 |
引用情報
@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",
}
🔧 技術詳細
このモデルは、Marian NMT というフレームワークを使って訓練され、huggingfaceのtransformers
ライブラリを使ってpyTorchに変換されています。訓練データは OPUS から取得され、訓練パイプラインは OPUS-MT-train の手順に従っています。
📄 ライセンス
このモデルは、CC BY 4.0ライセンスの下で提供されています。
謝辞
この研究は、European Language Grid のpilot project 2866、FoTran project(European Research Council (ERC) からの助成金No 771113による資金提供)、および MeMAD project(European Union’s Horizon 2020 Research and Innovation Programmeの助成金No 780069による資金提供)によって支援されています。また、フィンランドの CSC -- IT Center for Science が提供する計算資源とITインフラストラクチャに感謝します。
モデル変換情報
- transformersバージョン: 4.16.2
- OPUS-MTのgitハッシュ: f084bad
- 変換時間: Tue Mar 22 14:42:32 EET 2022
- 変換マシン: LM0-400-22516.local