Update README.md
Browse files
README.md
CHANGED
@@ -26,6 +26,37 @@ should probably proofread and complete it, then remove this comment. -->
|
|
26 |
This model achieves the following results on the evaluation set:
|
27 |
- Loss: 1.9097
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
## Training procedure
|
31 |
|
|
|
26 |
This model achieves the following results on the evaluation set:
|
27 |
- Loss: 1.9097
|
28 |
|
29 |
+
## How to use
|
30 |
+
|
31 |
+
```python
|
32 |
+
>>> from transformers import pipeline
|
33 |
+
>>> unmasker = pipeline('fill-mask', model='sinonimayzer/UzRoBERTa')
|
34 |
+
>>> unmasker("Kuchli yomg‘irlar tufayli bir qator <mask> kuchli sel oqishi kuzatildi.")
|
35 |
+
|
36 |
+
[{'score': 0.4612659811973572,
|
37 |
+
'token': 4952,
|
38 |
+
'token_str':
|
39 |
+
' hududlarda',
|
40 |
+
'sequence': 'Kuchli yomg‘irlar tufayli bir qator hududlarda kuchli sel oqishi kuzatildi.'},
|
41 |
+
{'score': 0.13514329493045807,
|
42 |
+
'token': 2782,
|
43 |
+
'token_str': ' joylarda',
|
44 |
+
'sequence': 'Kuchli yomg‘irlar tufayli bir qator joylarda kuchli sel oqishi kuzatildi.'},
|
45 |
+
{'score': 0.06566332280635834,
|
46 |
+
'token': 13886,
|
47 |
+
'token_str': ' tumanlarda',
|
48 |
+
'sequence': 'Kuchli yomg‘irlar tufayli bir qator tumanlarda kuchli sel oqishi kuzatildi.'},
|
49 |
+
{'score': 0.0388856865465641,
|
50 |
+
'token': 8073,
|
51 |
+
'token_str': ' joylarga',
|
52 |
+
'sequence': 'Kuchli yomg‘irlar tufayli bir qator joylarga kuchli sel oqishi kuzatildi.'},
|
53 |
+
{'score': 0.02526828832924366,
|
54 |
+
'token': 12328,
|
55 |
+
'token_str': ' shaharlarda',
|
56 |
+
'sequence': 'Kuchli yomg‘irlar tufayli bir qator shaharlarda kuchli sel oqishi kuzatildi.'}]
|
57 |
+
>>>
|
58 |
+
|
59 |
+
```
|
60 |
|
61 |
## Training procedure
|
62 |
|