update model card
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="projecte-aina/mt-aina-
|
50 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/spm.model")
|
51 |
tokenized=tokenizer.tokenize("Ongi etorri Aina proiektura.")
|
52 |
translator = ctranslate2.Translator(model_dir)
|
|
|
46 |
import ctranslate2
|
47 |
import pyonmttok
|
48 |
from huggingface_hub import snapshot_download
|
49 |
+
model_dir = snapshot_download(repo_id="projecte-aina/mt-aina-eu-ca", revision="main")
|
50 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/spm.model")
|
51 |
tokenized=tokenizer.tokenize("Ongi etorri Aina proiektura.")
|
52 |
translator = ctranslate2.Translator(model_dir)
|