Downloads · 30 days
9
1% of all-time downloads
cleandata/bert-finetuned-squad
bert-finetuned-squad is a question answering model from cleandata. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
644
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.bin431 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-cased on the squad dataset.
The model is based on a pretrained model where fine-tuning was done to setup the model for the actual task (use case).
Intended use here is to create a working model to teach myself and others about how to use transformers for Questions/Answering tasks. The limitation is that this approach expects input data to always have context, question, answer and to use the syntax [MASK] for this use case.
Training took more time than expected given use case.
Setup files with the expected format from pretrained model (context, question, answer)
display("Context: ", raw_datasets["train"][0]["context"])
display("Question: ", raw_datasets["train"][0]["question"])
display("Answer: ", raw_datasets["train"][0]["answers"])
output for code above
__Context :__ Architecturally, the school has a Catholic character. Atop the Main Building\'s gold dome is a golden statue of the Virgin Mary. Immediately in front of the Main Building and facing it, is a copper statue of Christ with arms upraised with the legend "Venite Ad Me Omnes". Next to the Main Building is the Basilica of the Sacred Heart. Immediately behind the basilica is the Grotto, a Marian place of prayer and reflection. It is a replica of the grotto at Lourdes, France where the Virgin Mary reputedly appeared to Saint Bernadette Soubirous in 1858. At the end of the main drive (and in a direct line that connects through 3 statues and the Gold Dome), is a simple, modern stone statue of Mary.
__Question :__ To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?
__Answer :__ {'text': ['Saint Bernadette Soubirous'], 'answer_start': [515]}
The following hyperparameters were used during training: