Downloads · 30 days
24
2% of all-time downloads
Den4ikAI/rubert-large-squad
rubert-large-squad is a question answering model from Den4ikAI. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
обученный rubert от sberbank-ai/ruBert-base.
Downloads · 30 days
24
2% of all-time downloads
All-time downloads
1.6K
Public
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.bin713 MB · 100%
From the Hugging Face model README
обученный rubert от sberbank-ai/ruBert-base.
размер выборки - 4.
Эпохи - 2.
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 года'}