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