Downloads · 30 days
151
8% of all-time downloads
robzchhangte/MizBERT
MizBERT is a fill-mask model from robzchhangte. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
MizBERT: A Masked Language Model for Mizo Text Understanding
Downloads · 30 days
151
8% of all-time downloads
All-time downloads
1.9K
Public
Parameters
110M
1.3 GB on disk
Likes
4
Public
Click a slice to open those files.
.pt876 MB · 67%
From the Hugging Face model README
MizBERT: A Masked Language Model for Mizo Text Understanding
Demo Application: https://huggingface.co/spaces/robzchhangte/Mizo-MLM
Overview
MizBERT is a masked language model (MLM) pre-trained on a corpus of Mizo text data. It is based on the BERT (Bidirectional Encoder Representations from Transformers) architecture and leverages the MLM objective to effectively learn contextual representations of words in the Mizo language.
Key Features
Potential Applications
Getting Started
To use MizBERT in your Mizo NLP projects, you can install it from the Hugging Face Transformers library:
pip install transformers
Then, import and use MizBERT like other pre-trained models in the library:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("robzchhangte/mizbert")
model = AutoModelForMaskedLM.from_pretrained("robzchhangte/mizbert")
To Predict Mask Token
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="robzchhangte/mizbert")
sentence = "Miten kan thiltih [MASK] min teh thin" ##Expected token "atangin". In English: A tree is known by its fruit.
predictions = fill_mask(sentence)
for prediction in predictions:
print(prediction["sequence"].replace("[CLS]", "").replace("[SEP]", "").strip(), "| Score:", prediction["score"])
If you used this model please cite us as:
@article{lalramhluna2024mizbert,
title={MizBERT: A Mizo BERT Model},
author={Lalramhluna, Robert and Dash, Sandeep and Pakray, Dr Partha},
journal={ACM Transactions on Asian and Low-Resource Language Information Processing},
year={2024},
publisher={ACM New York, NY}
}