Views
No views yet
| | SQuAD v2.0 | Dutch SQuAD v2.0 |
|-------------------------|------------------|------------------|
| **Train** | | |
| Total examples | 130,319 | 95,054 |
| Positive examples | 86,821 | 53,376 |
| Negative examples | 43,498 | 41,768 |
| **Development** | | |
| Total examples | 11,873 | 9,294 |
| Positive examples | 5,928 | 3,588 |
| Negative examples | 5,945 | 5,706 || Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:-----:|:---------------:|
| 1.4685 | 1.0 | 6229 | 1.2709 |
| 1.1882 | 2.0 | 12458 | 1.1931 |
| 0.9488 | 3.0 | 18687 | 1.2834 |1{
2'exact': 59.479233914353344,
3 'f1': 62.56163022484813,
4 'total': 9294,
5 'HasAns_exact': 38.405797101449274,
6 'HasAns_f1': 46.390131357228995,
7 'HasAns_total': 3588,
8 'NoAns_exact': 72.73045916579039,
9 'NoAns_f1': 72.73045916579039,
10 'NoAns_total': 5706,
11 'best_exact': 61.58812136862492,
12 'best_exact_thresh': 0.0,
13 'best_f1': 63.337535221120724,
14 'best_f1_thresh': 0.0
15}1from transformers import pipeline
2
3qa_pipeline = pipeline(
4 "question-answering",
5 model="tclungu/distilbert-base-nl-cased-finetuned-squad",
6 tokenizer="tclungu/distilbert-base-nl-cased-finetuned-squad"
7)
8
9qa_pipeline({
10 'context': "Amsterdam is de hoofdstad en de dichtstbevolkte stad van Nederland.",
11 'question': "Wat is de hoofdstad van Nederland?"})
12{'score': 0.9984413385391235, 'start': 0, 'end': 9, 'answer': 'Amsterdam'}[1] Rouws, N. J., Vakulenko, S., & Katrenko, S. (2022). Dutch squad and ensemble learning for question answering from labour agreements. In Artificial Intelligence and Machine Learning: 33rd Benelux Conference on Artificial Intelligence, BNAIC/Benelearn 2021, Esch-sur-Alzette, Luxembourg, November 10–12, 2021, Revised Selected Papers 33 (pp. 155-169). Springer International Publishing.
[2] Abdaoui, A., Pradel, C., & Sigel, G. (2020). Load what you need: Smaller versions of multilingual bert. arXiv preprint arXiv:2010.05609.