Downloads · 30 days
711
7% of all-time downloads
Rajan/NepaliBERT
NepaliBERT is a fill-mask model from Rajan. Use it when you need the model to fill a missing word. It is set up for transformers.
NEPALIBERT is a state-of-the-art language model for Nepali based on the BERT model. The model is trained using a masked language modeling (MLM).
Downloads · 30 days
711
7% of all-time downloads
All-time downloads
9.8K
Public
Repo size
656 MB
Likes
4
Public
Click a slice to open those files.
.bin328 MB · 100%
From the Hugging Face model README
NEPALIBERT is a state-of-the-art language model for Nepali based on the BERT model. The model is trained using a masked language modeling (MLM).
git lfs install
git clone https://huggingface.co/Rajan/NepaliBERT
from transformers import BertTokenizer
vocab_file_dir = './NepaliBERT/'
tokenizer = BertTokenizer.from_pretrained(vocab_file_dir,
strip_accents=False,
clean_text=False )
from transformers import BertForMaskedLM
model = BertForMaskedLM.from_pretrained('./NepaliBERT')
The easiest way to check whether our language model is learning anything interesting is via the FillMaskPipeline.
Pipelines are simple wrappers around tokenizers and models, and the 'fill-mask' one will let you input a sequence containing a masked token (here, [mask]) and return a list of the most probable filled sequences, with their probabilities.
from transformers import pipeline
fill_mask = pipeline(
"fill-mask",
model=model,
tokenizer=tokenizer
)
For more info visit the GITHUB🤗