Commit
·
29eb74f
1
Parent(s):
bcc650c
Update README.md
Browse files
README.md
CHANGED
|
@@ -139,7 +139,7 @@ from transformers import M2M100ForConditionalGeneration
|
|
| 139 |
from tokenization_small100 import SMALL100Tokenizer
|
| 140 |
|
| 141 |
model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
|
| 142 |
-
tokenizer =
|
| 143 |
|
| 144 |
src_text = "Life is like a box of chocolates."
|
| 145 |
tgt_text = "La vie est comme une boîte de chocolat."
|
|
|
|
| 139 |
from tokenization_small100 import SMALL100Tokenizer
|
| 140 |
|
| 141 |
model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
|
| 142 |
+
tokenizer = SMALL100Tokenizer.from_pretrained("alirezamsh/small100", tgt_lang="fr")
|
| 143 |
|
| 144 |
src_text = "Life is like a box of chocolates."
|
| 145 |
tgt_text = "La vie est comme une boîte de chocolat."
|