Translation
Transformers
PyTorch
TensorFlow
Safetensors
English
Latvian
marian
text2text-generation
opus-mt-tc
Eval Results (legacy)
Instructions to use Helsinki-NLP/opus-mt-tc-big-lv-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-tc-big-lv-en with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-lv-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-tc-big-lv-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-tc-big-lv-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
6a72922
1
Parent(s): f4477d9
Add `opus-mt-tc` tag (#1)
Browse files- Add `opus-mt-tc` tag (88250c9fec099d3b2d80de2149e5fb85b6a8c83c)
README.md
CHANGED
|
@@ -2,10 +2,9 @@
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- lv
|
| 5 |
-
|
| 6 |
tags:
|
| 7 |
- translation
|
| 8 |
-
|
| 9 |
license: cc-by-4.0
|
| 10 |
model-index:
|
| 11 |
- name: opus-mt-tc-big-lv-en
|
|
@@ -19,9 +18,9 @@ model-index:
|
|
| 19 |
type: flores_101
|
| 20 |
args: lav eng devtest
|
| 21 |
metrics:
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
- task:
|
| 26 |
name: Translation lav-eng
|
| 27 |
type: translation
|
|
@@ -31,9 +30,9 @@ model-index:
|
|
| 31 |
type: newsdev2017
|
| 32 |
args: lav-eng
|
| 33 |
metrics:
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
- task:
|
| 38 |
name: Translation lav-eng
|
| 39 |
type: translation
|
|
@@ -43,9 +42,9 @@ model-index:
|
|
| 43 |
type: tatoeba_mt
|
| 44 |
args: lav-eng
|
| 45 |
metrics:
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
- task:
|
| 50 |
name: Translation lav-eng
|
| 51 |
type: translation
|
|
@@ -55,9 +54,9 @@ model-index:
|
|
| 55 |
type: wmt-2017-news
|
| 56 |
args: lav-eng
|
| 57 |
metrics:
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
---
|
| 62 |
# opus-mt-tc-big-lv-en
|
| 63 |
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
- lv
|
|
|
|
| 5 |
tags:
|
| 6 |
- translation
|
| 7 |
+
- opus-mt-tc
|
| 8 |
license: cc-by-4.0
|
| 9 |
model-index:
|
| 10 |
- name: opus-mt-tc-big-lv-en
|
|
|
|
| 18 |
type: flores_101
|
| 19 |
args: lav eng devtest
|
| 20 |
metrics:
|
| 21 |
+
- name: BLEU
|
| 22 |
+
type: bleu
|
| 23 |
+
value: 37.2
|
| 24 |
- task:
|
| 25 |
name: Translation lav-eng
|
| 26 |
type: translation
|
|
|
|
| 30 |
type: newsdev2017
|
| 31 |
args: lav-eng
|
| 32 |
metrics:
|
| 33 |
+
- name: BLEU
|
| 34 |
+
type: bleu
|
| 35 |
+
value: 30.8
|
| 36 |
- task:
|
| 37 |
name: Translation lav-eng
|
| 38 |
type: translation
|
|
|
|
| 42 |
type: tatoeba_mt
|
| 43 |
args: lav-eng
|
| 44 |
metrics:
|
| 45 |
+
- name: BLEU
|
| 46 |
+
type: bleu
|
| 47 |
+
value: 59.2
|
| 48 |
- task:
|
| 49 |
name: Translation lav-eng
|
| 50 |
type: translation
|
|
|
|
| 54 |
type: wmt-2017-news
|
| 55 |
args: lav-eng
|
| 56 |
metrics:
|
| 57 |
+
- name: BLEU
|
| 58 |
+
type: bleu
|
| 59 |
+
value: 21.8
|
| 60 |
---
|
| 61 |
# opus-mt-tc-big-lv-en
|
| 62 |
|