Update README.md
Browse files
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 ≈2M news articles (≈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 ≈2M news articles (≈3Gb).
|