Views
No views yet
abdulwaheed1/english-to-urdu-translation-mbartfacebook/mbart-large-50facebook/mbart-large-50en)ur)1python
2from transformers import MBart50TokenizerFast, MBartForConditionalGeneration
3
4# Load the fine-tuned model
5model_name = "abdulwaheed1/english-to-urdu-translation-mbart"
6tokenizer = MBart50TokenizerFast.from_pretrained(model_name, src_lang="en_XX", tgt_lang="ur_PK")
7model = MBartForConditionalGeneration.from_pretrained(model_name)transformers library with the following configuration:data directory.