jordimas commited on
Commit
f20ccf3
1 Parent(s): 0515c38
Files changed (1) hide show
  1. README.md +0 -1
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']))