You can set the source language in the tokenizer: | |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer | |
en_text = "Do not meddle in the affairs of wizards, for they are subtle and quick to anger." |
You can set the source language in the tokenizer: | |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer | |
en_text = "Do not meddle in the affairs of wizards, for they are subtle and quick to anger." |