Den4ikAI commited on
Commit
b3bbb69
·
1 Parent(s): 42c81bc

Create new file

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