rifkat commited on
Commit
5d7acfa
·
1 Parent(s): 060c76f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md CHANGED
@@ -23,6 +23,14 @@ widget:
23
 
24
  Pre-prepared model in Uzbek (Cyrillic and latin script) to model the masked language and predict the next sentences.
25
 
 
 
 
 
 
 
 
 
26
  <p><b>Training data.</b>
27
 
28
  UzBERT model was pretrained on &asymp;2M news articles (&asymp;3Gb).
 
23
 
24
  Pre-prepared model in Uzbek (Cyrillic and latin script) to model the masked language and predict the next sentences.
25
 
26
+ <p><b>How to use.</b>
27
+ You can use this model directly with a pipeline for masked language modeling:
28
+ $$
29
+ from transformers import pipeline
30
+ unmasker = pipeline('fill-mask', model='coppercitylabs/uzbert-base-uncased')
31
+ unmasker("Алишер Навоий – улуғ ўзбек ва бошқа туркий халқларнинг [MASK], мутафаккири ва давлат арбоби бўлган.")
32
+ $$
33
+
34
  <p><b>Training data.</b>
35
 
36
  UzBERT model was pretrained on &asymp;2M news articles (&asymp;3Gb).