Downloads · 30 days
9
0% of all-time downloads
mcsabai/huBert-fine-tuned-hungarian-squadv1
huBert-fine-tuned-hungarian-squadv1 is a question answering model from mcsabai. Use it when the input is a question plus a passage. It is set up for transformers.
huBERT base model (cased) fine-tuned on SQuAD v1 - huBert model + Tokenizer: https://huggingface.co/SZTAKI-HLT/hubert-base-cc - Hungarian SQUAD v1 dataset: Machine Translated SQuAD dataset (Google Translate API) - Thi…
Downloads · 30 days
9
0% of all-time downloads
All-time downloads
2.9K
Public
Repo size
1.3 GB
Likes
3
Public
Click a slice to open those files.
.h5440 MB · 50%
From the Hugging Face model README
huBERT base model (cased) fine-tuned on SQuAD v1
from transformers import pipeline
qa_pipeline = pipeline(
"question-answering",
model="mcsabai/huBert-fine-tuned-hungarian-squadv1",
tokenizer="mcsabai/huBert-fine-tuned-hungarian-squadv1"
)
predictions = qa_pipeline({
'context': "Anita vagyok és Budapesten élek már több mint 4 éve.",
'question': "Hol lakik Anita?"
})
print(predictions)
# output:
# {'score': 0.9892364144325256, 'start': 16, 'end': 26, 'answer': 'Budapesten'}