Downloads · 30 days
13
9% of all-time downloads
kazalbrur/BanglishToBanglaTrsnsliteration
BanglishToBanglaTrsnsliteration is a machine learning model from kazalbrur. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
13
9% of all-time downloads
All-time downloads
148
Public
Parameters
248M
990 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
Model Description:
The BanglishToBanglaTransliteration model is designed to transliterate text written in Banglish (Bengali language written using the Latin script) into proper Bengali script. This model is useful for processing and converting text that has been transliterated into Latin characters, which is common in digital communication among Bengali speakers.
Model Type: Transformer-based Encoder-Decoder Model
Languages: Bengali (Bangla)
Training Data: The model was trained on a dataset of Banglish and corresponding Bengali sentences.
To use this model, you need to install the transformers library by Hugging Face:
pip install transformers
Here is an example of how to use the BanglishToBanglaTransliteration model with the transformers library:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("kazalbrur/BanglishToBanglaTransliteration")
model = AutoModelForSeq2SeqLM.from_pretrained("kazalbrur/BanglishToBanglaTransliteration")
banglish_text = "apni kemon achen?"
inputs = tokenizer.encode(banglish_text, return_tensors="pt")
outputs = model.generate(inputs)
bangla_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(bangla_text)
Hyperparameters:
Optimizer: Adam with a custom learning rate schedule.
The model was trained using a Transformer architecture, incorporating positional encodings, multi-head attention mechanisms, and feed-forward neural networks. It was optimized using a custom learning rate schedule and Adam optimizer.
Loss Function: Sparse Categorical Crossentropy, masked to ignore padding tokens.
Accuracy Function: Calculated based on the exact match of tokens, excluding padding tokens.
The model's performance was evaluated using standard NLP metrics. The accuracy and loss during training were tracked and can be plotted to visualize model performance.
The model may not perform well on out-of-vocabulary words or phrases that were not included in the training data. Additionally, transliteration errors can occur if the input Banglish text is not phonetically accurate.
Future improvements may include expanding the training dataset, fine-tuning on more diverse datasets, and integrating with broader NLP tasks.
If you use this model, please cite it as follows:
@misc{banglishtobanglatransliteration,
author = {Kazal Chandra Barman},
title = {BanglishToBanglaTransliteration},
year = {2024},
url = {https://huggingface.co/kazalbrur/BanglishToBanglaTransliteration}
}
Special thanks to [https://www.kaggle.com/datasets/kazalnext/banglish-to-bangla-dataset] for providing the dataset and [csebuetnlp/banglat5] for facilitating the development of this model.