🚀 opus-mt-tc-big-en-et
這是一個用於將英語(en)翻譯成愛沙尼亞語(et)的神經機器翻譯模型。該模型屬於[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",
}
🚀 快速開始
本模型可用於將英語翻譯成愛沙尼亞語,下面為你展示使用示例。
✨ 主要特性
- 屬於OPUS - MT項目,致力於提供多語言的機器翻譯服務。
- 基於Marian NMT框架訓練,轉換為pyTorch格式。
- 使用來自OPUS的訓練數據和OPUS - MT - train的訓練流程。
📦 安裝指南
文檔未提及具體安裝步驟,故跳過此章節。
💻 使用示例
基礎用法
from transformers import MarianMTModel, MarianTokenizer
src_text = [
">>est<< A cab is waiting.",
">>vro<< Where do you live?"
]
model_name = "pytorch - models/opus - mt - tc - big - en - et"
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 - et")
print(pipe(">>est<< A cab is waiting."))
📚 詳細文檔
模型信息
屬性 |
詳情 |
發佈時間 |
2022 - 03 - 13 |
源語言 |
英語(eng) |
目標語言 |
愛沙尼亞語(est) |
模型類型 |
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 - est/opusTCv20210807 + bt_transformer - big_2022 - 03 - 13.zip) |
更多模型信息 |
[OPUS - MT eng - est README](https://github.com/Helsinki - NLP/Tatoeba - Challenge/tree/master/models/eng - est/README.md) |
基準測試
語言對 |
測試集 |
chr - F |
BLEU |
句子數量 |
單詞數量 |
eng - est |
tatoeba - test - v2021 - 08 - 07 |
0.71255 |
53.4 |
1359 |
7992 |
eng - est |
flores101 - devtest |
0.61306 |
28.3 |
1012 |
19788 |
eng - est |
newsdev2018 |
0.57225 |
25.2 |
2000 |
34492 |
eng - est |
newstest2018 |
0.58540 |
26.7 |
2000 |
36269 |
- 測試集翻譯結果:[opusTCv20210807 + bt_transformer - big_2022 - 03 - 13.test.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/eng - est/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 - est/opusTCv20210807 + bt_transformer - big_2022 - 03 - 13.eval.txt)
- 基準測試結果:benchmark_results.txt
- 基準測試輸出:benchmark_translations.zip
致謝
本工作得到了以下項目和機構的支持:
- [歐洲語言網格](https://www.european - language - grid.eu/)的[試點項目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),由歐洲研究理事會(ERC)在歐盟的“地平線2020”研究與創新計劃(資助協議編號771113)下資助。
- MeMAD項目,由歐盟的“地平線2020”研究與創新計劃(資助協議編號780069)資助。
同時,感謝芬蘭CSC - 科學信息技術中心提供的慷慨計算資源和IT基礎設施。
模型轉換信息
屬性 |
詳情 |
transformers版本 |
4.16.2 |
OPUS - MT git哈希值 |
3405783 |
轉換時間 |
Wed Apr 13 17:00:19 EEST 2022 |
轉換機器 |
LM0 - 400 - 22516.local |
🔧 技術細節
文檔未提及具體技術實現細節,故跳過此章節。
📄 許可證
本模型使用CC - BY - 4.0許可證。