Downloads · 30 days
39
0% of all-time downloads
antoniocappiello/bert-base-italian-uncased-squad-it
bert-base-italian-uncased-squad-it is a question answering model from antoniocappiello. Use it when the input is a question plus a passage. It is set up for transformers.
This model is the uncased base version of the italian BERT (which you may find at dbmdz/bert-base-italian-uncased) trained on the question answering task.
Downloads · 30 days
39
0% of all-time downloads
All-time downloads
69.4K
Public
Repo size
880 MB
Likes
5
Public
Click a slice to open those files.
.bin440 MB · 100%
From the Hugging Face model README
This model is the uncased base version of the italian BERT (which you may find at dbmdz/bert-base-italian-uncased) trained on the question answering task.
from transformers import pipeline
nlp = pipeline('question-answering', model='antoniocappiello/bert-base-italian-uncased-squad-it')
# nlp(context="D'Annunzio nacque nel 1863", question="Quando nacque D'Annunzio?")
# {'score': 0.9990354180335999, 'start': 22, 'end': 25, 'answer': '1863'}
It has been trained on the question answering task using SQuAD-it, derived from the original SQuAD dataset and obtained through the semi-automatic translation of the SQuAD dataset in Italian.
python ./examples/run_squad.py \
--model_type bert \
--model_name_or_path dbmdz/bert-base-italian-uncased \
--do_train \
--do_eval \
--train_file ./squad_it_uncased/train-v1.1.json \
--predict_file ./squad_it_uncased/dev-v1.1.json \
--learning_rate 3e-5 \
--num_train_epochs 2 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir ./models/bert-base-italian-uncased-squad-it/ \
--per_gpu_eval_batch_size=3 \
--per_gpu_train_batch_size=3 \
--do_lower_case \
| Metric | # Value |
|---|---|
| EM | 63.8 |
| F1 | 75.30 |
| Model | EM | F1 score |
|---|---|---|
| DrQA-it trained on SQuAD-it | 56.1 | 65.9 |
| This one | 63.8 | 75.30 |