Opus Mt Tc Big Zlw En
這是一個用於從西斯拉夫語族(zlw)翻譯至英語(en)的神經機器翻譯模型,隸屬於OPUS-MT項目。
下載量 361
發布時間 : 4/13/2022
模型概述
該模型專注於西斯拉夫語族到英語的翻譯任務,支持捷克語、下索布語、上索布語和波蘭語等多種語言的翻譯。
模型特點
多語言支持
支持多種西斯拉夫語族語言到英語的翻譯。
高性能翻譯
在多個測試集上表現出色,如捷克語-英語翻譯在flores101-devtest上的BLEU得分為41.2。
基於Transformer架構
採用transformer-big架構,提供高質量的翻譯效果。
模型能力
文本翻譯
多語言支持
使用案例
語言翻譯
捷克語到英語翻譯
將捷克語文本翻譯為英語,適用於文檔翻譯、即時翻譯等場景。
在flores101-devtest上的BLEU得分為41.2。
波蘭語到英語翻譯
將波蘭語文本翻譯為英語,適用於商務溝通、學術研究等場景。
在flores101-devtest上的BLEU得分為29.6。
🚀 opus-mt-tc-big-zlw-en
這是一個用於將西斯拉夫語(zlw)翻譯成英語(en)的神經機器翻譯模型。該模型是 [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 = [
"Aoi'ego hobby to tańczenie.",
"Myślisz, że Tom planuje to zrobić?"
]
model_name = "pytorch - models/opus - mt - tc - big - zlw - 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) )
# expected output:
# Aoi's hobby is dancing.
# You think Tom's planning on doing that?
高級用法
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki - NLP/opus - mt - tc - big - zlw - en")
print(pipe("Aoi'ego hobby to tańczenie."))
# expected output: Aoi's hobby is dancing.
📚 詳細文檔
模型信息
屬性 | 詳情 |
---|---|
發佈時間 | 2022 - 03 - 17 |
源語言 | ces、dsb、hsb、pol |
目標語言 | eng |
模型類型 | transformer - big |
訓練數據 | opusTCv20210807 + bt ([來源](https://github.com/Helsinki - NLP/Tatoeba - Challenge)) |
分詞方式 | SentencePiece (spm32k,spm32k) |
原始模型 | [opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.zip](https://object.pouta.csc.fi/Tatoeba - MT - models/zlw - eng/opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.zip) |
更多信息 | [OPUS - MT zlw - eng README](https://github.com/Helsinki - NLP/Tatoeba - Challenge/tree/master/models/zlw - eng/README.md) |
基準測試
語言對 | 測試集 | chr - F | BLEU | 句子數量 | 單詞數量 |
---|---|---|---|---|---|
ces - eng | tatoeba - test - v2021 - 08 - 07 | 0.71861 | 57.4 | 13824 | 105010 |
pol - eng | tatoeba - test - v2021 - 08 - 07 | 0.70544 | 55.7 | 10099 | 75766 |
ces - eng | flores101 - devtest | 0.66444 | 41.2 | 1012 | 24721 |
pol - eng | flores101 - devtest | 0.58301 | 29.6 | 1012 | 24721 |
slk - eng | flores101 - devtest | 0.66103 | 40.0 | 1012 | 24721 |
ces - eng | multi30k_test_2016_flickr | 0.61482 | 37.6 | 1000 | 12955 |
ces - eng | multi30k_test_2018_flickr | 0.61405 | 37.4 | 1071 | 14689 |
pol - eng | newsdev2020 | 0.60478 | 32.7 | 2000 | 46654 |
ces - eng | newssyscomb2009 | 0.56495 | 30.2 | 502 | 11818 |
ces - eng | news - test2008 | 0.54300 | 26.3 | 2051 | 49380 |
ces - eng | newstest2009 | 0.56309 | 29.5 | 2525 | 65399 |
ces - eng | newstest2010 | 0.57778 | 30.7 | 2489 | 61711 |
ces - eng | newstest2011 | 0.57336 | 30.9 | 3003 | 74681 |
ces - eng | newstest2012 | 0.56761 | 29.4 | 3003 | 72812 |
ces - eng | newstest2013 | 0.58809 | 32.8 | 3000 | 64505 |
ces - eng | newstest2014 | 0.64401 | 38.7 | 3003 | 68065 |
ces - eng | newstest2015 | 0.58607 | 33.4 | 2656 | 53569 |
ces - eng | newstest2016 | 0.61780 | 37.1 | 2999 | 64670 |
ces - eng | newstest2017 | 0.58259 | 32.5 | 3005 | 61721 |
ces - eng | newstest2018 | 0.58677 | 33.1 | 2983 | 63495 |
pol - eng | newstest2020 | 0.60047 | 32.6 | 1001 | 21755 |
- 測試集翻譯:[opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.test.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/zlw - eng/opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.test.txt)
- 測試集得分:[opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.eval.txt](https://object.pouta.csc.fi/Tatoeba - MT - models/zlw - eng/opusTCv20210807 + bt_transformer - big_2022 - 03 - 17.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),由歐盟的“地平線 2020”研究和創新計劃(資助協議編號 771113)下的歐洲研究理事會(ERC)資助。
- MeMAD 項目,由歐盟的“地平線 2020”研究和創新計劃資助(資助協議編號 780069)。
同時,我們感謝 芬蘭科學信息技術中心(CSC) 提供的慷慨計算資源和 IT 基礎設施。
模型轉換信息
屬性 | 詳情 |
---|---|
transformers 版本 | 4.16.2 |
OPUS - MT git 哈希值 | 3405783 |
轉換時間 | Wed Apr 13 20:19:48 EEST 2022 |
轉換機器 | LM0 - 400 - 22516.local |
📄 許可證
本模型採用 CC - BY - 4.0 許可證。
M2m100 418M
MIT
M2M100是一個多語言編碼器-解碼器模型,支持100種語言的9900個翻譯方向
機器翻譯 支持多種語言
M
facebook
1.6M
299
Opus Mt Fr En
Apache-2.0
基於Transformer的法語到英語神經機器翻譯模型,由Helsinki-NLP團隊開發,採用OPUS多語數據集訓練。
機器翻譯 支持多種語言
O
Helsinki-NLP
1.2M
44
Opus Mt Ar En
Apache-2.0
基於OPUS數據訓練的阿拉伯語到英語的機器翻譯模型,採用transformer-align架構
機器翻譯 支持多種語言
O
Helsinki-NLP
579.41k
42
M2m100 1.2B
MIT
M2M100是一個支持100種語言的多語言機器翻譯模型,可直接在9900個翻譯方向之間進行翻譯。
機器翻譯 支持多種語言
M
facebook
501.82k
167
Indictrans2 Indic En 1B
MIT
支持25種印度語言與英語互譯的1.1B參數規模機器翻譯模型,由AI4Bharat項目開發
機器翻譯
Transformers 支持多種語言

I
ai4bharat
473.63k
14
Opus Mt En Zh
Apache-2.0
基於Transformer架構的英漢多方言翻譯模型,支持英語到13種漢語變體的翻譯任務
機器翻譯 支持多種語言
O
Helsinki-NLP
442.08k
367
Opus Mt Zh En
由赫爾辛基大學開發的基於OPUS語料庫的中文到英語機器翻譯模型
機器翻譯 支持多種語言
O
Helsinki-NLP
441.24k
505
Mbart Large 50 Many To Many Mmt
基於mBART-large-50微調的多語言機器翻譯模型,支持50種語言間的互譯
機器翻譯 支持多種語言
M
facebook
404.66k
357
Opus Mt De En
Apache-2.0
opus-mt-de-en 是一個基於 transformer-align 架構的德語到英語的機器翻譯模型,由 Helsinki-NLP 團隊開發。
機器翻譯 支持多種語言
O
Helsinki-NLP
404.33k
44
Opus Mt Es En
Apache-2.0
這是一個基於Transformer架構的西班牙語到英語的機器翻譯模型,由Helsinki-NLP團隊開發。
機器翻譯
Transformers 支持多種語言

O
Helsinki-NLP
385.40k
71
精選推薦AI模型
Llama 3 Typhoon V1.5x 8b Instruct
專為泰語設計的80億參數指令模型,性能媲美GPT-3.5-turbo,優化了應用場景、檢索增強生成、受限生成和推理任務
大型語言模型
Transformers 支持多種語言

L
scb10x
3,269
16
Cadet Tiny
Openrail
Cadet-Tiny是一個基於SODA數據集訓練的超小型對話模型,專為邊緣設備推理設計,體積僅為Cosmo-3B模型的2%左右。
對話系統
Transformers 英語

C
ToddGoldfarb
2,691
6
Roberta Base Chinese Extractive Qa
基於RoBERTa架構的中文抽取式問答模型,適用於從給定文本中提取答案的任務。
問答系統 中文
R
uer
2,694
98