Views
No views yet
| Dataset | # Q&A |
|---|---|
| SQuAD2.0 Train | 130 K |
| SQuAD2.0-es-v2.0 | 111 K |
| SQuAD2.0 Dev | 12 K |
| SQuAD-es-v2.0-small Dev | 69 K |
1export SQUAD_DIR=path/to/nl_squad
2python transformers/examples/question-answering/run_squad.py \
3 --model_type bert \
4 --model_name_or_path dccuchile/bert-base-spanish-wwm-cased \
5 --do_train \
6 --do_eval \
7 --do_lower_case \
8 --train_file $SQUAD_DIR/train_nl-v2.0.json \
9 --predict_file $SQUAD_DIR/dev_nl-v2.0.json \
10 --per_gpu_train_batch_size 12 \
11 --learning_rate 3e-5 \
12 --num_train_epochs 2.0 \
13 --max_seq_length 384 \
14 --doc_stride 128 \
15 --output_dir /content/model_output \
16 --save_steps 5000 \
17 --threads 4 \
18 --version_2_with_negative | Metric | # Value |
|---|---|
| Exact | 76.5050 |
| F1 | 86.0781 |
1{
2 "exact": 76.50501430594491,
3 "f1": 86.07818773108252,
4 "total": 69202,
5 "HasAns_exact": 67.93020719738277,
6 "HasAns_f1": 82.37912207996466,
7 "HasAns_total": 45850,
8 "NoAns_exact": 93.34104145255225,
9 "NoAns_f1": 93.34104145255225,
10 "NoAns_total": 23352,
11 "best_exact": 76.51223953064941,
12 "best_exact_thresh": 0.0,
13 "best_f1": 86.08541295578848,
14 "best_f1_thresh": 0.0
15}

Created by Manuel Romero/@mrm8488
Made with ♥ in Spain