File size: 4,158 Bytes
cb8650b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f1e21d7
 
 
 
cb8650b
 
f1e21d7
cb8650b
f1e21d7
cb8650b
f1e21d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb8650b
 
 
f1e21d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb8650b
 
 
 
 
f1e21d7
cb8650b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
language:
- en
- zh
- tw
license: mit
tags:
- text
- question-and-answer
pretty_name: MedQA
task_categories:
- question-answering
configs:
- config_name: en
  data_files:
  - split: train
    path: data/questions/en/train.jsonl
  - split: dev
    path: data/questions/en/dev.jsonl
  - split: test
    path: data/questions/en/test.jsonl
  - split: all_splits
    path: data/questions/en/all_splits.jsonl
- config_name: tw
  data_files:
  - split: train
    path: data/questions/tw/train.jsonl
  - split: dev
    path: data/questions/tw/dev.jsonl
  - split: test
    path: data/questions/tw/test.jsonl
  - split: all_splits
    path: data/questions/tw/all_splits.jsonl
- config_name: zh
  data_files:
  - split: train
    path: data/questions/zh/train.jsonl
  - split: dev
    path: data/questions/zh/dev.jsonl
  - split: test
    path: data/questions/zh/test.jsonl
  - split: all_splits
    path: data/questions/zh/all_splits.jsonl
- config_name: xlang
  data_files:
  - split: train
    path: data/questions/xlang/train.jsonl
  - split: dev
    path: data/questions/xlang/dev.jsonl
  - split: test
    path: data/questions/xlang/test.jsonl
  - split: all_splits
    path: data/questions/xlang/all_splits.jsonl
- config_name: en_5
  data_files:
  - split: train
    path: data/questions/en_5/train.jsonl
  - split: dev
    path: data/questions/en_5/dev.jsonl
  - split: test
    path: data/questions/en_5/test.jsonl
  - split: all_splits
    path: data/questions/en_5/all_splits.jsonl
- config_name: zh_5
  data_files:
  - split: train
    path: data/questions/zh_5/train.jsonl
  - split: dev
    path: data/questions/zh_5/dev.jsonl
  - split: test
    path: data/questions/zh_5/test.jsonl
  - split: all_splits
    path: data/questions/zh_5/all_splits.jsonl
---

# Dataset Card for MedQA

- **Homepage:** [https://github.com/jind11/MedQA](https://github.com/jind11/MedQA)
  - This is an unofficial curation of the MedQA dataset, uploaded here with minimal (i.e., no content-modifying) processing.
- **Paper:** [*What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Exams*](https://www.mdpi.com/2076-3417/11/14/6421) (MDPI)
- **Languages:** English (en), Taiwanese (tw), and Chinese (zh).


## Dataset Subsets

This dataset contains multiple configs:

- QA with four possible answers (as reported in the paper)
  - `en`: English instances
  - `tw`: Taiwanese instances
  - `zh`: Chinese instances
  - `xlang`: instances in any language
- QA with five possible answers (the original datasets for English and Chinese)
  - `en_5`
  - `zh_5`

Data can be loaded by specifying the config and data split:

```
from datasets import load_dataset

data = load_dataset("mathewhe/medqa", "en", split="train")
```

Possible splits are "train", "dev", and "test".

## Dataset Structure

Each data subset will contain the following columns:

```
question (string): The question/prompt.
answer: The correct response.
answer_idx: The multiple-choice identifier for the correct response.
A: The "A" answer.
B: The "B" answer.
C: The "C" answer.
D: The "D" answer.
E (in `en_5` or `zh_5` subsets): The "E" answer.
language: "en", "tw", or "zh".
```

Example from en-train:

| question                | answer         | meta_info | answer_idx | A          | B           | C           | D              | language |
|-------------------------|----------------|-----------|------------|------------|-------------|-------------|----------------|----------|
| A 23-year-old pregna... | Nitrofurantoin | step2&3   | D          | Ampicillin | Ceftriaxone | Doxycycline | Nitrofurantoin | en       |



## Citation Information

For reproducibility, please include a link to *this* dataset when publishing results based on the included data.

For formal citations, please cite the *original* publication:
```
@article{jin2020disease,
  title={What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Exams},
  author={Jin, Di and Pan, Eileen and Oufattole, Nassim and Weng, Wei-Hung and Fang, Hanyi and Szolovits, Peter},
  journal={arXiv preprint arXiv:2009.13081},
  year={2020}
}
```