File size: 790 Bytes
466f4b7
 
f795b33
 
2e604ee
 
38d9324
2e604ee
acfece9
466f4b7
c94708c
 
 
 
 
4635e87
bf2d4bd
4635e87
 
 
 
 
 
bf2d4bd
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
license: mit

pipeline_tag: question-answering
widget:
    - context: "Пушкин родился 6 июля 1799 года"
    - text: "Когда родился Пушкин?"
      example_title: "test"

---
обученный rubert от sberbank-ai/ruBert-base.

размер выборки - 4.

Эпохи - 2.

```python
from transformers import pipeline
qa_pipeline = pipeline(
    "question-answering",
    model="Den4ikAI/rubert-large-squad",
    tokenizer="Den4ikAI/rubert-large-squad"
)
predictions = qa_pipeline({
    'context': "Пушкин родился 6 июля 1799 года",
    'question': "Когда родился Пушкин?"
})
print(predictions)
# output:
#{'score': 0.9613797664642334, 'start': 15, 'end': 31, 'answer': '6 июля 1799 года'}
```