Use the code below to get started with the model.
1import torch
2from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
3
4model = MBartForConditionalGeneration.from_pretrained("repleeka/mBART-tgj-final")
5tokenizer = MBart50TokenizerFast.from_pretrained("repleeka/mBART-tgj-final")
6
7tokenizer.src_lang = "en_XX"
8text = "How are you?"
9inputs = tokenizer(text, return_tensors="pt")
10
11generated_tokens = model.generate(
12 **inputs,
13 forced_bos_token_id=tokenizer.convert_tokens_to_ids("<tgj_IN>"),
14 num_beams=5,
15 max_length=128,
16)
17
18print(tokenizer.batch_decode(generated_tokens, skip_special_tokens=True))
19
Dugi, T., & Sambyo, K. (2025).
A Knowledge-Integrated System for Quality-Driven Filtering of Low-Resource Tagin-English Bitexts.
National Institute of Technology Arunachal Pradesh.
MIT / Apache-2.0 recommended for research openness and compatibility.
(Data licensing depends on source text availability.)
For collaboration, feedback, or issues:
tungondugi@gmail.com