Update README.md
Browse files
README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
-
обученный rubert от
|
| 5 |
|
| 6 |
размер выборки - 4.
|
| 7 |
|
| 8 |
-
Эпохи -
|
| 9 |
|
| 10 |
```python
|
| 11 |
from transformers import pipeline
|
| 12 |
qa_pipeline = pipeline(
|
| 13 |
"question-answering",
|
| 14 |
-
model="Den4ikAI/rubert-
|
| 15 |
-
tokenizer="Den4ikAI/rubert-
|
| 16 |
)
|
| 17 |
predictions = qa_pipeline({
|
| 18 |
'context': "Пушкин родился 6 июля 1799 года",
|
|
@@ -20,5 +20,5 @@ predictions = qa_pipeline({
|
|
| 20 |
})
|
| 21 |
print(predictions)
|
| 22 |
# output:
|
| 23 |
-
#{'score': 0.
|
| 24 |
```
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
+
обученный rubert от cointegrated/rubert-tiny2.
|
| 5 |
|
| 6 |
размер выборки - 4.
|
| 7 |
|
| 8 |
+
Эпохи - 16.
|
| 9 |
|
| 10 |
```python
|
| 11 |
from transformers import pipeline
|
| 12 |
qa_pipeline = pipeline(
|
| 13 |
"question-answering",
|
| 14 |
+
model="Den4ikAI/rubert-tiny-squad",
|
| 15 |
+
tokenizer="Den4ikAI/rubert-tiny-squad"
|
| 16 |
)
|
| 17 |
predictions = qa_pipeline({
|
| 18 |
'context': "Пушкин родился 6 июля 1799 года",
|
|
|
|
| 20 |
})
|
| 21 |
print(predictions)
|
| 22 |
# output:
|
| 23 |
+
#{'score': 0.9413797664642334, 'start': 15, 'end': 31, 'answer': '6 июля 1799 года'}
|
| 24 |
```
|