Downloads · 30 days
10
2% of all-time downloads
monirbishal/en-bn-nmt
en-bn-nmt is a translation model from monirbishal. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
524
Public
Parameters
75.8M
305 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors303 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of shhossain/opus-mt-en-to-bn.
It has been trained on a combination of open and custom datasets to enhance English to Bengali (Bangla) translation accuracy, especially in conversational, motivational, and real-life sentence structures.
The en-bn-nmt model is a neural machine translation model fine-tuned using the MarianMT architecture from Hugging Face.
The model's main goal is to translate from English to Bangla in an expressive and human-like way, preserving emotional context and natural tone.
Training was done on a diverse set of datasets, including:
This variety of sources was chosen to ensure the model can perform well in formal, informal, and spoken-language use cases.
Intended for:
Not suitable for:
| Training Loss | Epoch | Validation Loss | BLEU Score |
|---|---|---|---|
| 0.2006 | 1 | 0.191746 | 24.8904 |
| 0.1334 | 2 | 0.164062 | 29.9686 |
| 0.0970 | 3 | 0.154388 | 33.1481 |
We evaluated the model using hand-crafted sentence sets based on motivational, real-life, and spoken content. While BLEU scores are useful, we also performed manual assessments to compare fluency and correctness against reference translations.
English:
"Don't wait for opportunity. Create it."
Model Output:
"সুযোগের জন্য অপেক্ষা করো না, এটা তৈরি কর"
Reference:
"সুযোগের অপেক্ষা করো না। নিজেকে তৈরি করো।"
(Model retains intent but slightly deviates in tone. Under refinement.)
from transformers import MarianMTModel, MarianTokenizer
model_name = "monirbishal/en-bn-nmt"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
def translate(text):
inputs = tokenizer(text, return_tensors="pt", padding=True)
translated = model.generate(**inputs)
return tokenizer.decode(translated[0], skip_special_tokens=True)
translate("I have to go to sleep.")
This model is currently open for educational and research use.
We are working on assigning an appropriate license (likely Apache 2.0 or MIT).
If you use this model, please cite the original authors and datasets.
This project is released to the open-source community to promote better Bangla language technology for educational and real-world applications.
We welcome feedback, collaboration, and contributions.
If you use this model, please cite it:
@misc{monirbishal_en_bn_nmt,
title = {English to Bengali Neural Machine Translation Model},
author = {Monir Bishal},
howpublished = {\url{https://huggingface.co/monirbishal/en-bn-nmt}},
year = {2025}
}