ai-forever
commited on
Commit
•
aaab14a
1
Parent(s):
f318028
Update README.md
Browse files
README.md
CHANGED
@@ -89,7 +89,7 @@ from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
|
|
89 |
path_to_model = "ai-forever/RuM2M100-418M"
|
90 |
|
91 |
model = M2M100ForConditionalGeneration.from_pretrained(path_to_model)
|
92 |
-
tokenizer = M2M100Tokenizer.from_pretrained(path_to_model)
|
93 |
|
94 |
sentence = "прийдя в МГТУ я был удивлен никого необноружив там…"
|
95 |
|
|
|
89 |
path_to_model = "ai-forever/RuM2M100-418M"
|
90 |
|
91 |
model = M2M100ForConditionalGeneration.from_pretrained(path_to_model)
|
92 |
+
tokenizer = M2M100Tokenizer.from_pretrained(path_to_model, src_lang="ru", tgt_lang="ru")
|
93 |
|
94 |
sentence = "прийдя в МГТУ я был удивлен никого необноружив там…"
|
95 |
|