mirbostani commited on
Commit
2b91529
1 Parent(s): fdd81c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md CHANGED
@@ -1,3 +1,43 @@
1
  ---
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - question-answering
6
  license: apache-2.0
7
+ datasets:
8
+ - trivia_qa
9
+ metrics:
10
+ - f1
11
+ - exact_match
12
  ---
13
+
14
+ # BERT Base Uncased Finetuned on TriviaQA
15
+
16
+ The BERT (Base) model is finetuned on the TriviaQA dataset using a modified version of the `run_squad.py` legacy script in Transformers.
17
+
18
+ ```bash
19
+ $ cd ~/projects/transformers/examples/legacy/question-answering
20
+ $ mkdir bert_base_uncased_finetuned_triviaqa
21
+ python run_triviaqa.py \
22
+ --model_type bert \
23
+ --model_name_or_path "bert-base-uncased" \
24
+ --do_train \
25
+ --do_eval \
26
+ --do_lower_case \
27
+ --num_train_epochs 2 \
28
+ --per_gpu_train_batch_size 8 \
29
+ --per_gpu_eval_batch_size 32 \
30
+ --max_seq_length 384 \
31
+ --max_grad_norm inf\
32
+ --doc_stride 128 \
33
+ --train_file "~/projects/data/triviaqa/squad-triviaqa-wikipedia-train.json" \
34
+ --predict_file "~/projects//data/triviaqa/squad-triviaqa-wikipedia-dev.json" \
35
+ --output_dir "./bert_base_uncased_finetuned_triviaqa" \
36
+ --save_steps 50000
37
+ ```
38
+
39
+ Results:
40
+
41
+ ```bash
42
+ {'exact': 55.57530864197531, 'f1': 61.37345358329793, 'total': 10125, 'HasAns_exact': 55.57530864197531, 'HasAns_f1': 61.37345358329793, 'HasAns_total': 10125, 'best_exact': 55.57530864197531, 'best_exact_thresh': 0.0, 'best_f1': 61.37345358329793, 'best_f1_thresh': 0.0}
43
+ ```