dorinalakatos commited on
Commit
9c371d1
1 Parent(s): b9c9a3b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -37,7 +37,7 @@ tokenized=tokenizer.tokenize("Hello világ")
37
 
38
  translator = ctranslate2.Translator(model_dir)
39
  translated = translator.translate_batch([tokenized[0]])
40
- print(tokenizer.detokenize(translated[0][0]['tokens']))
41
  ```
42
 
43
 
 
37
 
38
  translator = ctranslate2.Translator(model_dir)
39
  translated = translator.translate_batch([tokenized[0]])
40
+ print(tokenizer.detokenize(translated[0].hypotheses[0]))
41
  ```
42
 
43