🚀 opus-mt-tc-big-fi-en
このモデルは、フィンランド語(fi)から英語(en)への翻訳を行うためのニューラル機械翻訳モデルです。OPUS - MTプロジェクトの一部として、世界中の多くの言語に対してニューラル機械翻訳モデルを広く利用可能にする取り組みの一環です。
🚀 クイックスタート
このモデルを使用することで、フィンランド語から英語への翻訳が可能です。以下に使用例を示します。
✨ 主な機能
- フィンランド語から英語への高精度な翻訳を提供します。
- Marian NMTフレームワークを用いて訓練され、効率的なNMT実装です。
- huggingfaceのtransformersライブラリを使用してpyTorchに変換されています。
📦 インストール
このモデルを使用するには、transformers
ライブラリが必要です。以下のコマンドでインストールできます。
pip install transformers
💻 使用例
基本的な使用法
from transformers import MarianMTModel, MarianTokenizer
src_text = [
"Kolme kolmanteen on kaksikymmentäseitsemän.",
"Heille syntyi poikavauva."
]
model_name = "pytorch-models/opus-mt-tc-big-fi-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-fi-en")
print(pipe("Kolme kolmanteen on kaksikymmentäseitsemän."))
📚 ドキュメント
モデル情報
ベンチマーク
言語ペア |
テストセット |
chr - F |
BLEU |
文数 |
単語数 |
fin - eng |
tatoeba - test - v2021 - 08 - 07 |
0.72298 |
57.4 |
10690 |
80552 |
fin - eng |
flores101 - devtest |
0.62521 |
35.4 |
1012 |
24721 |
fin - eng |
newsdev2015 |
0.56232 |
28.6 |
1500 |
32012 |
fin - eng |
newstest2015 |
0.57469 |
29.9 |
1370 |
27270 |
fin - eng |
newstest2016 |
0.60715 |
34.3 |
3000 |
62945 |
fin - eng |
newstest2017 |
0.63050 |
37.3 |
3002 |
61846 |
fin - eng |
newstest2018 |
0.54199 |
27.1 |
3000 |
62325 |
fin - eng |
newstest2019 |
0.59620 |
32.7 |
1996 |
36215 |
fin - eng |
newstestB2016 |
0.55472 |
27.9 |
3000 |
62945 |
fin - eng |
newstestB2017 |
0.58847 |
31.1 |
3002 |
61846 |
引用
このモデルを使用する場合は、以下の論文を引用してください。
@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フレームワークを用いて訓練されています。訓練データはOPUSから取得され、訓練パイプラインはOPUS - MT - trainの手順に従っています。
📄 ライセンス
このモデルは、CC - BY - 4.0ライセンスの下で提供されています。
謝辞
この研究は、European Language Gridのpilot project 2866、FoTran project(European Research Council (ERC)によるEuropean Union’s Horizon 2020 research and innovation programmeの助成(grant agreement No 771113))、およびMeMAD project(European Union’s Horizon 2020 Research and Innovation Programmeの助成(grant agreement No 780069))によって支援されています。また、フィンランドのCSC -- IT Center for Scienceが提供する計算資源とITインフラに感謝します。
モデル変換情報
属性 |
详情 |
transformersバージョン |
4.16.2 |
OPUS - MTのgitハッシュ |
f084bad |
変換時間 |
Tue Mar 22 14:52:19 EET 2022 |
変換マシン |
LM0 - 400 - 22516.local |