Downloads · 30 days
9
20% of all-time downloads
sreelakshmi1808/meghana-en-hi-translator
meghana-en-hi-translator is a translation model from sreelakshmi1808. Use it when you need text moved from one language to another. It is set up for tf-keras. The card lists the license as mit.
This model is designed to translate English text to Hindi using the MarianMT architecture. It has been trained for high-quality translations.
Downloads · 30 days
9
20% of all-time downloads
All-time downloads
45
Public
Repo size
932 MB
Likes
0
Public
Click a slice to open those files.
.data-00000-of-00001917 MB · 98%
From the Hugging Face model README
This model is designed to translate English text to Hindi using the MarianMT architecture. It has been trained for high-quality translations.
You can use this model in Python with the transformers library:
from transformers import MarianMTModel, MarianTokenizer
# Load model and tokenizer
model_name = "sreelakshmi1808/meghana-en-hi-translator"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
# Sample translation
text = "Hello, how are you?"
inputs = tokenizer(text, return_tensors="pt")
translated_tokens = model.generate(**inputs)
translated_text = tokenizer.decode(translated_tokens[0], skip_special_tokens=True)
print("Translated text:", translated_text)