Downloads · 30 days
7
1% of all-time downloads
abhilash1910/distilbert-squadv1
distilbert-squadv1 is a question answering model from abhilash1910. Use it when the input is a question plus a passage. It is set up for transformers.
Training is done on the SQuAD dataset. The model can be accessed via HuggingFace:
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
977
Public
Repo size
522 MB
Likes
0
Public
Click a slice to open those files.
.bin261 MB · 100%
From the Hugging Face model README
Training is done on the SQuAD dataset. The model can be accessed via HuggingFace:
We have used the following parameters:
from transformers import AutoModelForQuestionAnswering,AutoTokenizer,pipeline
model=AutoModelForQuestionAnswering.from_pretrained('abhilash1910/distilbert-squadv1')
tokenizer=AutoTokenizer.from_pretrained('abhilash1910/distilbert-squadv1')
nlp_QA=pipeline('question-answering',model=model,tokenizer=tokenizer)
QA_inp={
'question': 'What is the fund price of Huggingface in NYSE?',
'context': 'Huggingface Co. has a total fund price of $19.6 million dollars'
}
result=nlp_QA(QA_inp)
result
The result is:
{'score': 0.38547369837760925,
'start': 42,
'end': 55,
'answer': '$19.6 million'}
language: