Fix
Browse files
README.md
CHANGED
@@ -39,7 +39,6 @@ model_dir = snapshot_download(repo_id="jordimas/gec-opennmt-english", revision="
|
|
39 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/sp_m.model")
|
40 |
tokenized=tokenizer.tokenize("The water are hot. My friends are going to be late. Today mine mother is in Barcelona.")
|
41 |
|
42 |
-
|
43 |
translator = ctranslate2.Translator(model_dir)
|
44 |
translated = translator.translate_batch([tokenized[0]])
|
45 |
print(tokenizer.detokenize(translated[0][0]['tokens']))
|
|
|
39 |
tokenizer=pyonmttok.Tokenizer(mode="none", sp_model_path = model_dir + "/sp_m.model")
|
40 |
tokenized=tokenizer.tokenize("The water are hot. My friends are going to be late. Today mine mother is in Barcelona.")
|
41 |
|
|
|
42 |
translator = ctranslate2.Translator(model_dir)
|
43 |
translated = translator.translate_batch([tokenized[0]])
|
44 |
print(tokenizer.detokenize(translated[0][0]['tokens']))
|