Views
No views yet
SQuAD_it-train.json: it contains training examples derived from the original SQuAD 1.1 trainig material.SQuAD_it-test.json: it contains test/benchmarking examples derived from the origial SQuAD 1.1 development material.| Metric | # Value |
|---|---|
| EM | 62.51 |
| F1 | 74.16 |
1{
2 "exact": 62.5180707057432,
3 "f1": 74.16038329042492,
4 "total": 7609,
5 "HasAns_exact": 62.5180707057432,
6 "HasAns_f1": 74.16038329042492,
7 "HasAns_total": 7609,
8 "best_exact": 62.5180707057432,
9 "best_exact_thresh": 0.0,
10 "best_f1": 74.16038329042492,
11 "best_f1_thresh": 0.0
12}| Model | EM | F1 score |
|---|---|---|
| DrQA-it trained on SQuAD-it | 56.1 | 65.9 |
| This one | 62.51 | 74.16 |
1from transformers import pipeline
2
3nlp_qa = pipeline(
4 'question-answering',
5 model='mrm8488/bert-italian-finedtuned-squadv1-it-alfa',
6 tokenizer='mrm8488/bert-italian-finedtuned-squadv1-it-alfa'
7)
8
9nlp_qa(
10 {
11 'question': 'Per quale lingua stai lavorando?',
12 'context': 'Manuel Romero è colaborando attivamente con HF / trasformatori per il trader del poder de las últimas ' +
13 'técnicas di procesamiento de lenguaje natural al idioma español'
14 }
15)
16
17# Output: {'answer': 'español', 'end': 174, 'score': 0.9925341537498156, 'start': 168}Created by Manuel Romero/@mrm8488 | LinkedIn
Made with ♥ in Spain