Shushant Pudasaini commited on
Commit
c5a3afe
1 Parent(s): 406dfc2

added model card

Browse files

Model card for usage

Files changed (1) hide show
  1. README.md +13 -0
README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Masked Language Model for nepali language trained on nepali news scrapped from different nepali news website. The data set contained about 10 million of nepali sentences mainly related to nepali news.
2
+
3
+
4
+ Usage
5
+ ```
6
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
7
+ tokenizer = AutoTokenizer.from_pretrained("Shushant/nepaliBERT")
8
+ model = AutoModelForMaskedLM.from_pretrained("Shushant/nepaliBERT")
9
+
10
+ from transformers import pipeline
11
+
12
+ fill_mask = pipeline( "fill-mask", model=model, tokenizer=tokenizer, ) from pprint import pprint pprint(fill_mask(f"तिमीलाई कस्तो {tokenizer.mask_token}."))
13
+ ```