Fix
Browse files
README.md
CHANGED
@@ -35,7 +35,7 @@ Simple tokenization & translation using Python:
|
|
35 |
import ctranslate2
|
36 |
import pyonmttok
|
37 |
from huggingface_hub import snapshot_download
|
38 |
-
model_dir = snapshot_download(repo_id="softcatala/translate-cat-
|
39 |
|
40 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/sp_m.model")
|
41 |
tokenized=tokenizer.tokenize("Hola amics")
|
|
|
35 |
import ctranslate2
|
36 |
import pyonmttok
|
37 |
from huggingface_hub import snapshot_download
|
38 |
+
model_dir = snapshot_download(repo_id="softcatala/translate-cat-spa", revision="main")
|
39 |
|
40 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/sp_m.model")
|
41 |
tokenized=tokenizer.tokenize("Hola amics")
|