Downloads · 30 days
55
8% of all-time downloads
Francesco-A/bert-finetuned-squad-v1
bert-finetuned-squad-v1 is a question answering model from Francesco-A. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of bert-base-cased on the Stanford Question Answering Dataset (SQuAD).
Downloads · 30 days
55
8% of all-time downloads
All-time downloads
702
Public
Parameters
108M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin431 MB · 50%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-cased on the Stanford Question Answering Dataset (SQuAD).
The bert-finetuned-squad-v1 model is built upon the BERT (Bidirectional Encoder Representations from Transformers) architecture and has been fine-tuned specifically for the task of question-answering on the SQuAD dataset. It takes a passage of text (context) and a question as input and predicts the start and end positions of the answer within the context.
The model was trained on the SQuAD dataset, which consists of two main splits:
The training process involved several key steps:
Preprocessing: The training data was preprocessed to convert text inputs into numerical IDs using a BERT tokenizer. Additionally, labels for start and end positions of answer spans were generated.
Sliding Window: To handle long contexts, a sliding window approach was employed. Long contexts were split into multiple input features with overlapping tokens.
Fine-tuning: The model was fine-tuned on the SQuAD training data, with a focus on minimizing the loss associated with predicting answer spans.
Post-processing: During inference, the model predicts start and end logits for answer spans, and these logits are used to determine the answer span with the highest score. The predictions are then converted back into text spans based on token offsets.
Evaluation: The model's performance was evaluated on the SQuAD validation set using metrics such as exact match (EM) and F1 score, which measure the accuracy of the predicted answers.
The following hyperparameters were used during training: