joefox commited on
Commit
6c30fee
1 Parent(s): 15238ac

readme update

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,7 +31,7 @@ Example translate Russian to Chinese
31
  from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
32
 
33
  model = MBartForConditionalGeneration.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
34
- tokenizer = MBart50TokenizerFast.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt", src_lang="ru_RU", tgt_lang="zh_CN")
35
 
36
  src_text = "Съешь ещё этих мягких французских булок."
37
 
@@ -56,7 +56,7 @@ and Example translate Chinese to Russian
56
  from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
57
 
58
  model = MBartForConditionalGeneration.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
59
- tokenizer = MBart50TokenizerFast.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt", src_lang="ru_RU", tgt_lang="zh_CN")
60
 
61
  src_text = "吃一些软的法国面包。"
62
  # translate Chinese to Russian
 
31
  from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
32
 
33
  model = MBartForConditionalGeneration.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
34
+ tokenizer = MBart50TokenizerFast.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
35
 
36
  src_text = "Съешь ещё этих мягких французских булок."
37
 
 
56
  from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
57
 
58
  model = MBartForConditionalGeneration.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
59
+ tokenizer = MBart50TokenizerFast.from_pretrained("joefox/mbart-large-ru-zh-ru-many-to-many-mmt")
60
 
61
  src_text = "吃一些软的法国面包。"
62
  # translate Chinese to Russian