You can set the source language in the tokenizer: | |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM | |
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 AutoTokenizer, AutoModelForSeq2SeqLM | |
en_text = "Do not meddle in the affairs of wizards, for they are subtle and quick to anger." |