Initial commit
Browse files- .gitattributes +1 -0
- README.md +322 -0
- benchmark_results.txt +20 -0
- benchmark_translations.zip +3 -0
- config.json +45 -0
- pytorch_model.bin +3 -0
- source.spm +3 -0
- special_tokens_map.json +1 -0
- target.spm +3 -0
- tokenizer_config.json +1 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -26,3 +26,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 28 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 28 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.spm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- fr
|
| 5 |
+
|
| 6 |
+
tags:
|
| 7 |
+
- translation
|
| 8 |
+
|
| 9 |
+
license: cc-by-4.0
|
| 10 |
+
model-index:
|
| 11 |
+
- name: opus-mt-tc-big-en-fr
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Translation eng-fra
|
| 15 |
+
type: translation
|
| 16 |
+
args: eng-fra
|
| 17 |
+
dataset:
|
| 18 |
+
name: flores101-devtest
|
| 19 |
+
type: flores_101
|
| 20 |
+
args: eng fra devtest
|
| 21 |
+
metrics:
|
| 22 |
+
- name: BLEU
|
| 23 |
+
type: bleu
|
| 24 |
+
value: 52.2
|
| 25 |
+
- task:
|
| 26 |
+
name: Translation eng-fra
|
| 27 |
+
type: translation
|
| 28 |
+
args: eng-fra
|
| 29 |
+
dataset:
|
| 30 |
+
name: multi30k_test_2016_flickr
|
| 31 |
+
type: multi30k-2016_flickr
|
| 32 |
+
args: eng-fra
|
| 33 |
+
metrics:
|
| 34 |
+
- name: BLEU
|
| 35 |
+
type: bleu
|
| 36 |
+
value: 52.4
|
| 37 |
+
- task:
|
| 38 |
+
name: Translation eng-fra
|
| 39 |
+
type: translation
|
| 40 |
+
args: eng-fra
|
| 41 |
+
dataset:
|
| 42 |
+
name: multi30k_test_2017_flickr
|
| 43 |
+
type: multi30k-2017_flickr
|
| 44 |
+
args: eng-fra
|
| 45 |
+
metrics:
|
| 46 |
+
- name: BLEU
|
| 47 |
+
type: bleu
|
| 48 |
+
value: 52.8
|
| 49 |
+
- task:
|
| 50 |
+
name: Translation eng-fra
|
| 51 |
+
type: translation
|
| 52 |
+
args: eng-fra
|
| 53 |
+
dataset:
|
| 54 |
+
name: multi30k_test_2017_mscoco
|
| 55 |
+
type: multi30k-2017_mscoco
|
| 56 |
+
args: eng-fra
|
| 57 |
+
metrics:
|
| 58 |
+
- name: BLEU
|
| 59 |
+
type: bleu
|
| 60 |
+
value: 54.7
|
| 61 |
+
- task:
|
| 62 |
+
name: Translation eng-fra
|
| 63 |
+
type: translation
|
| 64 |
+
args: eng-fra
|
| 65 |
+
dataset:
|
| 66 |
+
name: multi30k_test_2018_flickr
|
| 67 |
+
type: multi30k-2018_flickr
|
| 68 |
+
args: eng-fra
|
| 69 |
+
metrics:
|
| 70 |
+
- name: BLEU
|
| 71 |
+
type: bleu
|
| 72 |
+
value: 43.7
|
| 73 |
+
- task:
|
| 74 |
+
name: Translation eng-fra
|
| 75 |
+
type: translation
|
| 76 |
+
args: eng-fra
|
| 77 |
+
dataset:
|
| 78 |
+
name: news-test2008
|
| 79 |
+
type: news-test2008
|
| 80 |
+
args: eng-fra
|
| 81 |
+
metrics:
|
| 82 |
+
- name: BLEU
|
| 83 |
+
type: bleu
|
| 84 |
+
value: 27.6
|
| 85 |
+
- task:
|
| 86 |
+
name: Translation eng-fra
|
| 87 |
+
type: translation
|
| 88 |
+
args: eng-fra
|
| 89 |
+
dataset:
|
| 90 |
+
name: newsdiscussdev2015
|
| 91 |
+
type: newsdiscussdev2015
|
| 92 |
+
args: eng-fra
|
| 93 |
+
metrics:
|
| 94 |
+
- name: BLEU
|
| 95 |
+
type: bleu
|
| 96 |
+
value: 33.4
|
| 97 |
+
- task:
|
| 98 |
+
name: Translation eng-fra
|
| 99 |
+
type: translation
|
| 100 |
+
args: eng-fra
|
| 101 |
+
dataset:
|
| 102 |
+
name: newsdiscusstest2015
|
| 103 |
+
type: newsdiscusstest2015
|
| 104 |
+
args: eng-fra
|
| 105 |
+
metrics:
|
| 106 |
+
- name: BLEU
|
| 107 |
+
type: bleu
|
| 108 |
+
value: 40.3
|
| 109 |
+
- task:
|
| 110 |
+
name: Translation eng-fra
|
| 111 |
+
type: translation
|
| 112 |
+
args: eng-fra
|
| 113 |
+
dataset:
|
| 114 |
+
name: tatoeba-test-v2021-08-07
|
| 115 |
+
type: tatoeba_mt
|
| 116 |
+
args: eng-fra
|
| 117 |
+
metrics:
|
| 118 |
+
- name: BLEU
|
| 119 |
+
type: bleu
|
| 120 |
+
value: 53.2
|
| 121 |
+
- task:
|
| 122 |
+
name: Translation eng-fra
|
| 123 |
+
type: translation
|
| 124 |
+
args: eng-fra
|
| 125 |
+
dataset:
|
| 126 |
+
name: tico19-test
|
| 127 |
+
type: tico19-test
|
| 128 |
+
args: eng-fra
|
| 129 |
+
metrics:
|
| 130 |
+
- name: BLEU
|
| 131 |
+
type: bleu
|
| 132 |
+
value: 40.6
|
| 133 |
+
- task:
|
| 134 |
+
name: Translation eng-fra
|
| 135 |
+
type: translation
|
| 136 |
+
args: eng-fra
|
| 137 |
+
dataset:
|
| 138 |
+
name: newstest2009
|
| 139 |
+
type: wmt-2009-news
|
| 140 |
+
args: eng-fra
|
| 141 |
+
metrics:
|
| 142 |
+
- name: BLEU
|
| 143 |
+
type: bleu
|
| 144 |
+
value: 30.0
|
| 145 |
+
- task:
|
| 146 |
+
name: Translation eng-fra
|
| 147 |
+
type: translation
|
| 148 |
+
args: eng-fra
|
| 149 |
+
dataset:
|
| 150 |
+
name: newstest2010
|
| 151 |
+
type: wmt-2010-news
|
| 152 |
+
args: eng-fra
|
| 153 |
+
metrics:
|
| 154 |
+
- name: BLEU
|
| 155 |
+
type: bleu
|
| 156 |
+
value: 33.5
|
| 157 |
+
- task:
|
| 158 |
+
name: Translation eng-fra
|
| 159 |
+
type: translation
|
| 160 |
+
args: eng-fra
|
| 161 |
+
dataset:
|
| 162 |
+
name: newstest2011
|
| 163 |
+
type: wmt-2011-news
|
| 164 |
+
args: eng-fra
|
| 165 |
+
metrics:
|
| 166 |
+
- name: BLEU
|
| 167 |
+
type: bleu
|
| 168 |
+
value: 35.0
|
| 169 |
+
- task:
|
| 170 |
+
name: Translation eng-fra
|
| 171 |
+
type: translation
|
| 172 |
+
args: eng-fra
|
| 173 |
+
dataset:
|
| 174 |
+
name: newstest2012
|
| 175 |
+
type: wmt-2012-news
|
| 176 |
+
args: eng-fra
|
| 177 |
+
metrics:
|
| 178 |
+
- name: BLEU
|
| 179 |
+
type: bleu
|
| 180 |
+
value: 32.8
|
| 181 |
+
- task:
|
| 182 |
+
name: Translation eng-fra
|
| 183 |
+
type: translation
|
| 184 |
+
args: eng-fra
|
| 185 |
+
dataset:
|
| 186 |
+
name: newstest2013
|
| 187 |
+
type: wmt-2013-news
|
| 188 |
+
args: eng-fra
|
| 189 |
+
metrics:
|
| 190 |
+
- name: BLEU
|
| 191 |
+
type: bleu
|
| 192 |
+
value: 34.6
|
| 193 |
+
- task:
|
| 194 |
+
name: Translation eng-fra
|
| 195 |
+
type: translation
|
| 196 |
+
args: eng-fra
|
| 197 |
+
dataset:
|
| 198 |
+
name: newstest2014
|
| 199 |
+
type: wmt-2014-news
|
| 200 |
+
args: eng-fra
|
| 201 |
+
metrics:
|
| 202 |
+
- name: BLEU
|
| 203 |
+
type: bleu
|
| 204 |
+
value: 41.9
|
| 205 |
+
---
|
| 206 |
+
# opus-mt-tc-big-en-fr
|
| 207 |
+
|
| 208 |
+
Neural machine translation model for translating from English (en) to French (fr).
|
| 209 |
+
|
| 210 |
+
This model is part of the [OPUS-MT project](https://github.com/Helsinki-NLP/Opus-MT), an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of [Marian NMT](https://marian-nmt.github.io/), an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from [OPUS](https://opus.nlpl.eu/) and training pipelines use the procedures of [OPUS-MT-train](https://github.com/Helsinki-NLP/Opus-MT-train).
|
| 211 |
+
|
| 212 |
+
* Publications: [OPUS-MT – Building open translation services for the World](https://aclanthology.org/2020.eamt-1.61/) and [The Tatoeba Translation Challenge – Realistic Data Sets for Low Resource and Multilingual MT](https://aclanthology.org/2020.wmt-1.139/) (Please, cite if you use this model.)
|
| 213 |
+
|
| 214 |
+
```
|
| 215 |
+
@inproceedings{tiedemann-thottingal-2020-opus,
|
| 216 |
+
title = "{OPUS}-{MT} {--} Building open translation services for the World",
|
| 217 |
+
author = {Tiedemann, J{\"o}rg and Thottingal, Santhosh},
|
| 218 |
+
booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
|
| 219 |
+
month = nov,
|
| 220 |
+
year = "2020",
|
| 221 |
+
address = "Lisboa, Portugal",
|
| 222 |
+
publisher = "European Association for Machine Translation",
|
| 223 |
+
url = "https://aclanthology.org/2020.eamt-1.61",
|
| 224 |
+
pages = "479--480",
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
@inproceedings{tiedemann-2020-tatoeba,
|
| 228 |
+
title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
|
| 229 |
+
author = {Tiedemann, J{\"o}rg},
|
| 230 |
+
booktitle = "Proceedings of the Fifth Conference on Machine Translation",
|
| 231 |
+
month = nov,
|
| 232 |
+
year = "2020",
|
| 233 |
+
address = "Online",
|
| 234 |
+
publisher = "Association for Computational Linguistics",
|
| 235 |
+
url = "https://aclanthology.org/2020.wmt-1.139",
|
| 236 |
+
pages = "1174--1182",
|
| 237 |
+
}
|
| 238 |
+
```
|
| 239 |
+
|
| 240 |
+
## Model info
|
| 241 |
+
|
| 242 |
+
* Release: 2022-03-09
|
| 243 |
+
* source language(s): eng
|
| 244 |
+
* target language(s): fra
|
| 245 |
+
* model: transformer-big
|
| 246 |
+
* data: opusTCv20210807+bt ([source](https://github.com/Helsinki-NLP/Tatoeba-Challenge))
|
| 247 |
+
* tokenization: SentencePiece (spm32k,spm32k)
|
| 248 |
+
* original model: [opusTCv20210807+bt_transformer-big_2022-03-09.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-fra/opusTCv20210807+bt_transformer-big_2022-03-09.zip)
|
| 249 |
+
* more information released models: [OPUS-MT eng-fra README](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-fra/README.md)
|
| 250 |
+
|
| 251 |
+
## Usage
|
| 252 |
+
|
| 253 |
+
A short example code:
|
| 254 |
+
|
| 255 |
+
```python
|
| 256 |
+
from transformers import MarianMTModel, MarianTokenizer
|
| 257 |
+
|
| 258 |
+
src_text = [
|
| 259 |
+
"The Portuguese teacher is very demanding.",
|
| 260 |
+
"When was your last hearing test?"
|
| 261 |
+
]
|
| 262 |
+
|
| 263 |
+
model_name = "pytorch-models/opus-mt-tc-big-en-fr"
|
| 264 |
+
tokenizer = MarianTokenizer.from_pretrained(model_name)
|
| 265 |
+
model = MarianMTModel.from_pretrained(model_name)
|
| 266 |
+
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))
|
| 267 |
+
|
| 268 |
+
for t in translated:
|
| 269 |
+
print( tokenizer.decode(t, skip_special_tokens=True) )
|
| 270 |
+
|
| 271 |
+
# expected output:
|
| 272 |
+
# Le professeur de portugais est très exigeant.
|
| 273 |
+
# Quand a eu lieu votre dernier test auditif ?
|
| 274 |
+
```
|
| 275 |
+
|
| 276 |
+
You can also use OPUS-MT models with the transformers pipelines, for example:
|
| 277 |
+
|
| 278 |
+
```python
|
| 279 |
+
from transformers import pipeline
|
| 280 |
+
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-fr")
|
| 281 |
+
print(pipe("The Portuguese teacher is very demanding."))
|
| 282 |
+
|
| 283 |
+
# expected output: Le professeur de portugais est très exigeant.
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
## Benchmarks
|
| 287 |
+
|
| 288 |
+
* test set translations: [opusTCv20210807+bt_transformer-big_2022-03-09.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-fra/opusTCv20210807+bt_transformer-big_2022-03-09.test.txt)
|
| 289 |
+
* test set scores: [opusTCv20210807+bt_transformer-big_2022-03-09.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-fra/opusTCv20210807+bt_transformer-big_2022-03-09.eval.txt)
|
| 290 |
+
* benchmark results: [benchmark_results.txt](benchmark_results.txt)
|
| 291 |
+
* benchmark output: [benchmark_translations.zip](benchmark_translations.zip)
|
| 292 |
+
|
| 293 |
+
| langpair | testset | chr-F | BLEU | #sent | #words |
|
| 294 |
+
|----------|---------|-------|-------|-------|--------|
|
| 295 |
+
| eng-fra | tatoeba-test-v2021-08-07 | 0.69621 | 53.2 | 12681 | 106378 |
|
| 296 |
+
| eng-fra | flores101-devtest | 0.72494 | 52.2 | 1012 | 28343 |
|
| 297 |
+
| eng-fra | multi30k_test_2016_flickr | 0.72361 | 52.4 | 1000 | 13505 |
|
| 298 |
+
| eng-fra | multi30k_test_2017_flickr | 0.72826 | 52.8 | 1000 | 12118 |
|
| 299 |
+
| eng-fra | multi30k_test_2017_mscoco | 0.73547 | 54.7 | 461 | 5484 |
|
| 300 |
+
| eng-fra | multi30k_test_2018_flickr | 0.66723 | 43.7 | 1071 | 15867 |
|
| 301 |
+
| eng-fra | newsdiscussdev2015 | 0.60471 | 33.4 | 1500 | 27940 |
|
| 302 |
+
| eng-fra | newsdiscusstest2015 | 0.64915 | 40.3 | 1500 | 27975 |
|
| 303 |
+
| eng-fra | newssyscomb2009 | 0.58903 | 30.7 | 502 | 12331 |
|
| 304 |
+
| eng-fra | news-test2008 | 0.55516 | 27.6 | 2051 | 52685 |
|
| 305 |
+
| eng-fra | newstest2009 | 0.57907 | 30.0 | 2525 | 69263 |
|
| 306 |
+
| eng-fra | newstest2010 | 0.60156 | 33.5 | 2489 | 66022 |
|
| 307 |
+
| eng-fra | newstest2011 | 0.61632 | 35.0 | 3003 | 80626 |
|
| 308 |
+
| eng-fra | newstest2012 | 0.59736 | 32.8 | 3003 | 78011 |
|
| 309 |
+
| eng-fra | newstest2013 | 0.59700 | 34.6 | 3000 | 70037 |
|
| 310 |
+
| eng-fra | newstest2014 | 0.66686 | 41.9 | 3003 | 77306 |
|
| 311 |
+
| eng-fra | tico19-test | 0.63022 | 40.6 | 2100 | 64661 |
|
| 312 |
+
|
| 313 |
+
## Acknowledgements
|
| 314 |
+
|
| 315 |
+
The work is supported by the [European Language Grid](https://www.european-language-grid.eu/) as [pilot project 2866](https://live.european-language-grid.eu/catalogue/#/resource/projects/2866), by the [FoTran project](https://www.helsinki.fi/en/researchgroups/natural-language-understanding-with-cross-lingual-grounding), funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 771113), and the [MeMAD project](https://memad.eu/), funded by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No 780069. We are also grateful for the generous computational resources and IT infrastructure provided by [CSC -- IT Center for Science](https://www.csc.fi/), Finland.
|
| 316 |
+
|
| 317 |
+
## Model conversion info
|
| 318 |
+
|
| 319 |
+
* transformers version: 4.16.2
|
| 320 |
+
* OPUS-MT git hash: 3405783
|
| 321 |
+
* port time: Wed Apr 13 17:07:05 EEST 2022
|
| 322 |
+
* port machine: LM0-400-22516.local
|
benchmark_results.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
eng-fra flores101-dev 0.72082 51.5 997 26706
|
| 2 |
+
eng-fra flores101-devtest 0.72494 52.2 1012 28343
|
| 3 |
+
eng-fra multi30k_test_2016_flickr 0.72361 52.4 1000 13505
|
| 4 |
+
eng-fra multi30k_test_2017_flickr 0.72826 52.8 1000 12118
|
| 5 |
+
eng-fra multi30k_test_2017_mscoco 0.73547 54.7 461 5484
|
| 6 |
+
eng-fra multi30k_test_2018_flickr 0.66723 43.7 1071 15867
|
| 7 |
+
eng-fra newsdiscussdev2015 0.60471 33.4 1500 27940
|
| 8 |
+
eng-fra newsdiscusstest2015 0.64915 40.3 1500 27975
|
| 9 |
+
eng-fra newssyscomb2009 0.58903 30.7 502 12331
|
| 10 |
+
eng-fra news-test2008 0.55516 27.6 2051 52685
|
| 11 |
+
eng-fra newstest2009 0.57907 30.0 2525 69263
|
| 12 |
+
eng-fra newstest2010 0.60156 33.5 2489 66022
|
| 13 |
+
eng-fra newstest2011 0.61632 35.0 3003 80626
|
| 14 |
+
eng-fra newstest2012 0.59736 32.8 3003 78011
|
| 15 |
+
eng-fra newstest2013 0.59700 34.6 3000 70037
|
| 16 |
+
eng-fra newstest2014 0.66686 41.9 3003 77306
|
| 17 |
+
eng-fra tatoeba-test-v2020-07-28 0.68090 51.7 10000 80769
|
| 18 |
+
eng-fra tatoeba-test-v2021-03-30 0.68816 52.5 10892 89269
|
| 19 |
+
eng-fra tatoeba-test-v2021-08-07 0.69621 53.2 12681 106378
|
| 20 |
+
eng-fra tico19-test 0.63022 40.6 2100 64661
|
benchmark_translations.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ce1f9f481c9db40dbdc1649b3ba2abc17701179f4f266101028c284b5c1d76f
|
| 3 |
+
size 5211139
|
config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"MarianMTModel"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bad_words_ids": [
|
| 9 |
+
[
|
| 10 |
+
53016
|
| 11 |
+
]
|
| 12 |
+
],
|
| 13 |
+
"bos_token_id": 0,
|
| 14 |
+
"classifier_dropout": 0.0,
|
| 15 |
+
"d_model": 1024,
|
| 16 |
+
"decoder_attention_heads": 16,
|
| 17 |
+
"decoder_ffn_dim": 4096,
|
| 18 |
+
"decoder_layerdrop": 0.0,
|
| 19 |
+
"decoder_layers": 6,
|
| 20 |
+
"decoder_start_token_id": 53016,
|
| 21 |
+
"decoder_vocab_size": 53017,
|
| 22 |
+
"dropout": 0.1,
|
| 23 |
+
"encoder_attention_heads": 16,
|
| 24 |
+
"encoder_ffn_dim": 4096,
|
| 25 |
+
"encoder_layerdrop": 0.0,
|
| 26 |
+
"encoder_layers": 6,
|
| 27 |
+
"eos_token_id": 43311,
|
| 28 |
+
"forced_eos_token_id": 43311,
|
| 29 |
+
"init_std": 0.02,
|
| 30 |
+
"is_encoder_decoder": true,
|
| 31 |
+
"max_length": 512,
|
| 32 |
+
"max_position_embeddings": 1024,
|
| 33 |
+
"model_type": "marian",
|
| 34 |
+
"normalize_embedding": false,
|
| 35 |
+
"num_beams": 4,
|
| 36 |
+
"num_hidden_layers": 6,
|
| 37 |
+
"pad_token_id": 53016,
|
| 38 |
+
"scale_embedding": true,
|
| 39 |
+
"share_encoder_decoder_embeddings": true,
|
| 40 |
+
"static_position_embeddings": true,
|
| 41 |
+
"torch_dtype": "float16",
|
| 42 |
+
"transformers_version": "4.18.0.dev0",
|
| 43 |
+
"use_cache": true,
|
| 44 |
+
"vocab_size": 53017
|
| 45 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:741a0c02247db174a0ead869a763a0d2886e428078097d85835ae25c1b7736d6
|
| 3 |
+
size 570070083
|
source.spm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18bb5a422a53a0bd699b005c8086cbd58a85c4be427fd57ca687c958588edcc9
|
| 3 |
+
size 802408
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
|
target.spm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6437b5600d2ae14888939e589773b09bc667c77e81326e20e3f57698a4078593
|
| 3 |
+
size 819955
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"source_lang": "en", "target_lang": "fr", "unk_token": "<unk>", "eos_token": "</s>", "pad_token": "<pad>", "model_max_length": 512, "sp_model_kwargs": {}, "separate_vocabs": false, "special_tokens_map_file": null, "name_or_path": "marian-models/opusTCv20210807+bt_transformer-big_2022-03-09/en-fr", "tokenizer_class": "MarianTokenizer"}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|