Downloads · 30 days
14
0% of all-time downloads
aryaumesh/english-to-marathi
english-to-marathi is a machine learning model from aryaumesh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc0-1.0.
A model that translates English sentences to Marathi.
Downloads · 30 days
14
0% of all-time downloads
All-time downloads
7.8K
Public
Parameters
611M
7.4 GB on disk
Likes
6
Public
Click a slice to open those files.
.pt4.9 GB · 66%
From the Hugging Face model README
A model that translates English sentences to Marathi.
To use this model, use the following code:
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
model_checkpoint = "aryaumesh/english-to-marathi"
tokenizer = MBart50TokenizerFast.from_pretrained(model_checkpoint)
model = MBartForConditionalGeneration.from_pretrained(model_checkpoint)
text = "This is a test case." # Sentence to translate
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True)) # हा चाचणीचा प्रकरण आहे.