Views
No views yet
| Metric | Value |
|---|---|
| EM | 0.660 |
| F1 | 0.775 |
1from transformers import pipelines
2
3qa = pipeline('question-answering', model='anakin87/electra-italian-xxl-cased-squad-it')
4qa(question="Qual è il soprannome di Vasco Rossi?", context="Vasco Rossi, noto anche semplicemente come Vasco e in passato con l'appellativo Blasco (Zocca, 7 febbraio 1952), è un cantautore italiano")
5>>> {'score': 0.93, 'start': 80, 'end': 86, 'answer': 'Blasco'}1...
2print_answers(prediction, details="medium")
3
4>>> Query: Con chi ha parlato di vaccini il premier Mario Draghi?
5Answers:
6[ { 'answer': 'Von der Leyen',
7 'context': " vaccino dell'azienda britannica. Durante la telefonata "
8 'tra Draghi e Von der Leyen, la presidente della '
9 'Commissione Ue ha annunciato al presidente del',
10 'score': 0.9663902521133423},
11 { 'answer': 'Ursula Von der Leyen',
12 'context': 'colloquio telefonico con la presidente della Commissione '
13 'europea Ursula Von der Leyen. Secondo fonti di Palazzo '
14 'Chigi, dalla conversazione è emerso ch',
15 'score': 0.9063920974731445},
16 { 'answer': 'Mario Draghi, ha tenuto un lungo discorso alla 76esima '
17 'Assemblea Generale delle Nazioni Unite',
18 'context': 'Il presidente del Consiglio, Mario Draghi, ha tenuto un '
19 'lungo discorso alla 76esima Assemblea Generale delle '
20 'Nazioni Unite, nella notte italiana. Tant',
21 'score': 0.5243796706199646}]| Model | EM | F1 | Model size (PyTorch) | Architecture |
|---|---|---|---|---|
| it5/it5-large-question-answering | 69.10 | 78.00 | 3.13 GB | encoder-decoder |
| anakin87/electra-italian-xxl-cased-squad-it (this one) | 66.03 | 77.47 | 437 MB | encoder |
| it5/it5-base-question-answering | 66.30 | 76.10 | 990 MB | encoder-decoder |
| it5/mt5-base-question-answering | 66.30 | 75.70 | 2.33 GB | encoder-decoder |
| antoniocappiello/bert-base-italian-uncased-squad-it | 63.80 | 75.30 | 440 MB | encoder |
| luigisaetta/squad_it_xxl_cased_hub1 | 63.95 | 75.27 | 440 MB | encoder |
| it5/it5-efficient-small-el32-question-answering | 64.50 | 74.70 | 569 MB | encoder-decoder |
| mrm8488/bert-italian-finedtuned-squadv1-it-alfa | 62.51 | 74.16 | 440 MB | encoder |
| mrm8488/umberto-wikipedia-uncased-v1-finetuned-squadv1-it | 60.50 | 72.41 | 443 MB | encoder |
| it5/it5-small-question-answering | 61.90 | 71.60 | 308 MB | encoder-decoder |
| it5/mt5-small-question-answering | 56.00 | 66.00 | 1.2 GB | encoder-decoder |
| DrQA-it trained on SQuAD-it | 56.10 | 65.90 | ? | ? |
Created by Stefano Fiorucci/anakin87Made with ♥ in Italy