readme update
Browse files
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"
|
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"
|
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
|