Downloads · 30 days
46
3% of all-time downloads
Shushant/NepNewsBERT
NepNewsBERT is a fill-mask model from Shushant. Use it when you need the model to fill a missing word. It is set up for transformers.
from transformers import AutoTokenizer, AutoModelForMaskedLM
Downloads · 30 days
46
3% of all-time downloads
All-time downloads
1.7K
Public
Repo size
1.8 GB
Likes
0
Public
Click a slice to open those files.
.pt876 MB · 67%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Shushant/NepNewsBERT")
model = AutoModelForMaskedLM.from_pretrained("Shushant/NepNewsBERT")
from transformers import pipeline
fill_mask = pipeline( "fill-mask", model=model, tokenizer=tokenizer, ) from pprint import pprint pprint(fill_mask(f"तिमीलाई कस्तो {tokenizer.mask_token}."))