Commit
·
43b643b
1
Parent(s):
7ca3cf7
Update README.md
Browse files
README.md
CHANGED
@@ -46,7 +46,7 @@ Translate a sentence using python
|
|
46 |
import ctranslate2
|
47 |
import pyonmttok
|
48 |
from huggingface_hub import snapshot_download
|
49 |
-
model_dir = snapshot_download(repo_id="
|
50 |
|
51 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/spm.model")
|
52 |
tokenized=tokenizer.tokenize("Bienvenido al Proyecto PlanTL!")
|
@@ -127,7 +127,7 @@ We use the BLEU score for evaluation on test sets: [Flores-101](https://github.c
|
|
127 |
|
128 |
Below are the evaluation results on the machine translation from Spanish to Catalan compared to [Softcatalà](https://www.softcatala.org/) and [Google Translate](https://translate.google.es/?hl=es):
|
129 |
|
130 |
-
| Test set | SoftCatalà | Google Translate |
|
131 |
|----------------------|------------|------------------|---------------|
|
132 |
| Spanish Constitution | | 61,7 | 63,0 |
|
133 |
| United Nations | | 74,8 | 74,9 |
|
|
|
46 |
import ctranslate2
|
47 |
import pyonmttok
|
48 |
from huggingface_hub import snapshot_download
|
49 |
+
model_dir = snapshot_download(repo_id="PlanTL-GOB-ES/mt-plantl-es-ca", revision="main")
|
50 |
|
51 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/spm.model")
|
52 |
tokenized=tokenizer.tokenize("Bienvenido al Proyecto PlanTL!")
|
|
|
127 |
|
128 |
Below are the evaluation results on the machine translation from Spanish to Catalan compared to [Softcatalà](https://www.softcatala.org/) and [Google Translate](https://translate.google.es/?hl=es):
|
129 |
|
130 |
+
| Test set | SoftCatalà | Google Translate |mt-plantl-es-ca|
|
131 |
|----------------------|------------|------------------|---------------|
|
132 |
| Spanish Constitution | | 61,7 | 63,0 |
|
133 |
| United Nations | | 74,8 | 74,9 |
|