jmhb commited on
Commit
14b3ee7
·
verified ·
1 Parent(s): f10e981

Add comprehensive README with BioASQ attribution and license info

Browse files
Files changed (1) hide show
  1. README.md +292 -68
README.md CHANGED
@@ -1,70 +1,294 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: type
5
- dtype: string
6
- - name: question
7
- dtype: string
8
- - name: answer
9
- dtype: string
10
- - name: ideal_answer
11
- dtype: string
12
- - name: documents
13
- sequence: string
14
- - name: snippets
15
- list:
16
- - name: beginSection
17
- dtype: string
18
- - name: document
19
- dtype: string
20
- - name: endSection
21
- dtype: string
22
- - name: offsetInBeginSection
23
- dtype: int64
24
- - name: offsetInEndSection
25
- dtype: int64
26
- - name: text
27
- dtype: string
28
- - name: asq_challenge
29
- dtype: int64
30
- - name: folder_name
31
- dtype: string
32
- - name: concepts
33
- sequence: string
34
- - name: triples
35
- list:
36
- - name: o
37
- dtype: string
38
- - name: p
39
- dtype: string
40
- - name: s
41
- dtype: string
42
- - name: id
43
- dtype: string
44
- splits:
45
- - name: factoid
46
- num_bytes: 10651614
47
- num_examples: 1609
48
- - name: yesno
49
- num_bytes: 9912166
50
- num_examples: 1464
51
- - name: summary
52
- num_bytes: 8033411
53
- num_examples: 1283
54
- - name: list
55
- num_bytes: 7576487
56
- num_examples: 1048
57
- download_size: 10986092
58
- dataset_size: 36173678
59
- configs:
60
- - config_name: default
61
- data_files:
62
- - split: factoid
63
- path: data/factoid-*
64
- - split: yesno
65
- path: data/yesno-*
66
- - split: summary
67
- path: data/summary-*
68
- - split: list
69
- path: data/list-*
70
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ license_name: bioasq-research-license
4
+ license_link: https://bioasq.org/participate
5
+ task_categories:
6
+ - question-answering
7
+ - summarization
8
+ language:
9
+ - en
10
+ tags:
11
+ - biomedical
12
+ - scientific-qa
13
+ - biology
14
+ - medicine
15
+ - pubmed
16
+ size_categories:
17
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
+
20
+ # BioASQ - All Question Types
21
+
22
+ A comprehensive dataset containing all question types from the BioASQ challenge, organized by question type as separate splits.
23
+
24
+ ## Dataset Description
25
+
26
+ This dataset contains **5,404 biomedical questions** from the BioASQ challenge, distributed across four question types:
27
+
28
+ - **factoid** (1,609 samples): Questions with short factual answers
29
+ - **yesno** (1,464 samples): Yes/No questions
30
+ - **summary** (1,283 samples): Questions requiring summarization
31
+ - **list** (1,048 samples): Questions with list-based answers
32
+
33
+ Each question type is provided as a separate split for convenient filtering and evaluation.
34
+
35
+ ## Source and Attribution
36
+
37
+ ### Original Dataset
38
+
39
+ This dataset is derived from the **BioASQ Challenge** data. BioASQ is a series of challenges on large-scale biomedical semantic indexing and question answering.
40
+
41
+ **IMPORTANT**: To use BioASQ data, you must:
42
+ 1. Register at: https://bioasq.org/
43
+ 2. Review and comply with BioASQ terms of use
44
+ 3. Cite the BioASQ papers (see below)
45
+ 4. Acknowledge the BioASQ dataset in any publications
46
+
47
+ ### Citations
48
+
49
+ If you use this dataset, please cite the following papers:
50
+
51
+ **Primary BioASQ Paper**:
52
+ ```bibtex
53
+ @article{tsatsaronis2015bioasq,
54
+ title={An overview of the BIOASQ large-scale biomedical semantic indexing and question answering competition},
55
+ author={Tsatsaronis, George and Balikas, Georgios and Malakasiotis, Prodromos and Partalas, Ioannis and Zschunke, Matthias and Alvers, Michael R and Weissenborn, Dirk and Krithara, Anastasia and Petridis, Sergios and Polychronopoulos, Dimitris and others},
56
+ journal={BMC bioinformatics},
57
+ volume={16},
58
+ number={1},
59
+ pages={1--28},
60
+ year={2015},
61
+ publisher={BioMed Central}
62
+ }
63
+ ```
64
+
65
+ **If using this organized version**:
66
+ ```bibtex
67
+ @misc{bioasq_all_types,
68
+ title={BioASQ All Question Types Dataset},
69
+ author={[Your Name]},
70
+ year={2026},
71
+ note={Reorganized version of BioASQ challenge data with question types as splits},
72
+ url={https://huggingface.co/datasets/jmhb/BioASQ}
73
+ }
74
+ ```
75
+
76
+ **PaperSearchQA** (if used in context of this project):
77
+ ```bibtex
78
+ @inproceedings{papersearchqa2026,
79
+ title={PaperSearchQA: A Large-Scale Dataset for Question Answering over Biomedical Literature},
80
+ author={[Authors to be added]},
81
+ booktitle={Proceedings of the 2026 Conference of the European Chapter of the Association for Computational Linguistics (EACL)},
82
+ year={2026},
83
+ url={https://jmhb0.github.io/PaperSearchQA}
84
+ }
85
+ ```
86
+
87
+ ## License and Terms of Use
88
+
89
+ ### BioASQ License
90
+
91
+ The original BioASQ data is available for **research and educational purposes** under specific terms:
92
+
93
+ - **Non-commercial use**: Freely available for academic research and education
94
+ - **Commercial use**: Requires written permission from BioASQ organizers
95
+ - **Attribution**: Must cite BioASQ papers and acknowledge the dataset
96
+ - **Registration**: Users must register at https://bioasq.org/
97
+
98
+ For full license terms, see: https://bioasq.org/participate
99
+
100
+ ### This Dataset
101
+
102
+ This reorganized version is provided **AS-IS** for research purposes and is subject to the original BioASQ terms. The reorganization (splitting by question type) is released under **CC BY 4.0**, but the underlying data remains under BioASQ terms.
103
+
104
+ ## Dataset Structure
105
+
106
+ ### Splits
107
+
108
+ The dataset has **four splits**, one for each question type:
109
+
110
+ | Split | Samples | Description |
111
+ |-------|---------|-------------|
112
+ | `factoid` | 1,609 | Questions with short factual answers (e.g., "What is the function of protein X?") |
113
+ | `yesno` | 1,464 | Yes/No questions (e.g., "Is aspirin effective for headaches?") |
114
+ | `summary` | 1,283 | Questions requiring summarization (e.g., "Describe the role of...") |
115
+ | `list` | 1,048 | Questions with list-based answers (e.g., "List all known variants of...") |
116
+
117
+ ### Fields
118
+
119
+ Each sample contains the following fields:
120
+
121
+ ```python
122
+ {
123
+ 'id': str, # Unique question ID
124
+ 'type': str, # Question type ('factoid', 'yesno', 'summary', or 'list')
125
+ 'question': str, # The question text
126
+ 'answer': list or str, # Answer(s) - format varies by type
127
+ 'ideal_answer': str or list, # Detailed/ideal answer
128
+ 'documents': list, # Relevant PubMed document IDs (URLs)
129
+ 'snippets': list, # Relevant text snippets from documents
130
+ 'concepts': list, # Medical concepts mentioned
131
+ 'triples': list, # Knowledge graph triples (if available)
132
+ 'asq_challenge': str, # BioASQ challenge identifier
133
+ 'folder_name': str, # Source folder
134
+ }
135
+ ```
136
+
137
+ ### Answer Formats by Type
138
+
139
+ - **factoid**: `answer` is a list of short text answers
140
+ - **yesno**: `answer` is "yes" or "no"
141
+ - **summary**: `answer` is typically empty; use `ideal_answer` for summary text
142
+ - **list**: `answer` is a list of items
143
+
144
+ ## Usage
145
+
146
+ ### Load All Splits
147
+
148
+ ```python
149
+ from datasets import load_dataset
150
+
151
+ # Load entire dataset
152
+ dataset = load_dataset("jmhb/BioASQ_all_types")
153
+
154
+ print(dataset.keys())
155
+ # dict_keys(['factoid', 'yesno', 'summary', 'list'])
156
+
157
+ # Access specific split
158
+ factoid_questions = dataset['factoid']
159
+ print(f"Factoid questions: {len(factoid_questions)}")
160
+ ```
161
+
162
+ ### Load Specific Split
163
+
164
+ ```python
165
+ # Load only factoid questions
166
+ factoid_data = load_dataset("jmhb/BioASQ_all_types", split="factoid")
167
+
168
+ # Example question
169
+ sample = factoid_data[0]
170
+ print(f"Question: {sample['question']}")
171
+ print(f"Answer: {sample['answer']}")
172
+ print(f"Documents: {sample['documents'][:2]}...")
173
+ ```
174
+
175
+ ### Filter by Type
176
+
177
+ ```python
178
+ # Get all yes/no questions
179
+ yesno_data = load_dataset("jmhb/BioASQ_all_types", split="yesno")
180
+
181
+ # Count yes vs no answers
182
+ yes_count = sum(1 for ex in yesno_data if ex['answer'] == 'yes')
183
+ no_count = sum(1 for ex in yesno_data if ex['answer'] == 'no')
184
+ print(f"Yes: {yes_count}, No: {no_count}")
185
+ ```
186
+
187
+ ### Iterate Over All Types
188
+
189
+ ```python
190
+ dataset = load_dataset("jmhb/BioASQ_all_types")
191
+
192
+ for question_type, split_data in dataset.items():
193
+ print(f"\n{question_type.upper()} Questions:")
194
+ print(f" Total: {len(split_data)}")
195
+
196
+ # Show first example
197
+ example = split_data[0]
198
+ print(f" Sample: {example['question'][:100]}...")
199
+ ```
200
+
201
+ ## Data Statistics
202
+
203
+ ### Overall Statistics
204
+
205
+ - **Total Questions**: 5,404
206
+ - **Question Types**: 4 (factoid, yesno, summary, list)
207
+ - **Source**: BioASQ challenges 1-9
208
+ - **Domain**: Biomedical and life sciences
209
+ - **Language**: English
210
+
211
+ ### Question Type Distribution
212
+
213
+ ```
214
+ factoid: 29.8% (1,609 questions)
215
+ yesno: 27.1% (1,464 questions)
216
+ summary: 23.7% (1,283 questions)
217
+ list: 19.4% (1,048 questions)
218
+ ```
219
+
220
+ ### Sample Questions by Type
221
+
222
+ **Factoid**:
223
+ - "What is the genetic basis of Huntington's disease?"
224
+ - "Which protein is encoded by the BRCA1 gene?"
225
+
226
+ **Yes/No**:
227
+ - "Is the protein Papilin secreted?"
228
+ - "Does metformin interfere with vitamin B12 absorption?"
229
+
230
+ **Summary**:
231
+ - "Describe the role of the immune system in cancer development."
232
+ - "What is known about the association between coffee consumption and health?"
233
+
234
+ **List**:
235
+ - "List symptoms of Alzheimer's disease."
236
+ - "Which genes are associated with autosomal dominant Alzheimer's disease?"
237
+
238
+ ## Limitations and Considerations
239
+
240
+ 1. **Question Distribution**: Not uniformly distributed across types
241
+ 2. **Answer Variability**: Answer formats vary significantly by type
242
+ 3. **Domain Specificity**: Highly specialized biomedical knowledge required
243
+ 4. **Evaluation Complexity**: Different metrics needed for different question types
244
+ 5. **Document Access**: Referenced PubMed documents may require separate retrieval
245
+ 6. **Knowledge Cutoff**: Questions are based on medical knowledge available up to the challenge date
246
+
247
+ ## Evaluation
248
+
249
+ Different question types require different evaluation metrics:
250
+
251
+ - **Factoid**: Exact Match (EM), F1 score
252
+ - **Yes/No**: Accuracy, F1 score
253
+ - **Summary**: ROUGE, BERTScore, human evaluation
254
+ - **List**: F1 score, Partial Match
255
+
256
+ See the [BioASQ evaluation tools](http://participants-area.bioasq.org/general_information/Task6b/) for official evaluation scripts.
257
+
258
+ ## Related Resources
259
+
260
+ ### BioASQ
261
+ - **Website**: https://bioasq.org/
262
+ - **Participate**: https://bioasq.org/participate
263
+ - **Papers**: https://bioasq.org/publications
264
+
265
+ ### PubMed Corpus
266
+ - **Full PubMed Corpus**: https://huggingface.co/datasets/jmhb/pubmed_bioasq_2022
267
+ - **NLM PubMed**: https://pubmed.ncbi.nlm.nih.gov/
268
+
269
+ ### PaperSearchQA Project
270
+ - **Website**: https://jmhb0.github.io/PaperSearchQA
271
+ - **GitHub**: https://github.com/jmhb0/PaperSearchQA
272
+ - **Main Dataset**: https://huggingface.co/datasets/jmhb/PaperSearchQA
273
+ - **Collection**: https://huggingface.co/collections/jmhb/papersearchqa
274
+
275
+ ## Contact and Support
276
+
277
+ For questions about:
278
+ - **Original BioASQ data**: Contact BioASQ organizers at https://bioasq.org/contact
279
+ - **This dataset organization**: Open an issue on the PaperSearchQA GitHub
280
+ - **PaperSearchQA project**: Visit https://jmhb0.github.io/PaperSearchQA
281
+
282
+ ## Acknowledgments
283
+
284
+ - **BioASQ Organizers**: For creating and maintaining this valuable resource
285
+ - **PubMed/NCBI**: For the underlying biomedical literature
286
+ - **Challenge Participants**: For advancing biomedical QA research
287
+ - **Funding Agencies**: Supporting the BioASQ challenges
288
+
289
+ ## Version History
290
+
291
+ - **v1.0** (2026-01): Initial release with all question types as separate splits
292
+ - 5,404 questions across 4 types
293
+ - Organized from BioASQ challenges 1-9
294
+ - Split by question type for convenient access