Datasets:
Tasks:
Multiple Choice
Modalities:
Text
Formats:
parquet
Sub-tasks:
multiple-choice-qa
Size:
1K - 10K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
README.md
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
- [Citation Information](#citation-information)
|
| 28 |
- [Contributions](#contributions)
|
| 29 |
|
| 30 |
-
##
|
| 31 |
|
| 32 |
- **Homepage:** [http://nlp.uned.es/clef-qa/repository/pastCampaigns.php](http://nlp.uned.es/clef-qa/repository/pastCampaigns.php)
|
| 33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
@@ -37,7 +37,7 @@
|
|
| 37 |
- **Size of the generated dataset:** 46.11 MB
|
| 38 |
- **Total amount of disk used:** 51.35 MB
|
| 39 |
|
| 40 |
-
###
|
| 41 |
|
| 42 |
QA4MRE dataset was created for the CLEF 2011/2012/2013 shared tasks to promote research in
|
| 43 |
question answering and reading comprehension. The dataset contains a supporting
|
|
@@ -47,19 +47,19 @@ training and test datasets are available for the main track.
|
|
| 47 |
Additional gold standard documents are available for two pilot studies: one on
|
| 48 |
alzheimers data, and the other on entrance exams data.
|
| 49 |
|
| 50 |
-
###
|
| 51 |
|
| 52 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 53 |
|
| 54 |
-
###
|
| 55 |
|
| 56 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 57 |
|
| 58 |
-
##
|
| 59 |
|
| 60 |
We show detailed information for up to 5 configurations of the dataset.
|
| 61 |
|
| 62 |
-
###
|
| 63 |
|
| 64 |
#### 2011.main.DE
|
| 65 |
|
|
@@ -116,7 +116,7 @@ An example of 'train' looks as follows.
|
|
| 116 |
|
| 117 |
```
|
| 118 |
|
| 119 |
-
###
|
| 120 |
|
| 121 |
The data fields are the same among all splits.
|
| 122 |
|
|
@@ -190,7 +190,7 @@ The data fields are the same among all splits.
|
|
| 190 |
- `correct_answer_id`: a `string` feature.
|
| 191 |
- `correct_answer_str`: a `string` feature.
|
| 192 |
|
| 193 |
-
###
|
| 194 |
|
| 195 |
| name |train|
|
| 196 |
|------------|----:|
|
|
@@ -200,49 +200,49 @@ The data fields are the same among all splits.
|
|
| 200 |
|2011.main.IT| 120|
|
| 201 |
|2011.main.RO| 120|
|
| 202 |
|
| 203 |
-
##
|
| 204 |
|
| 205 |
-
###
|
| 206 |
|
| 207 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 208 |
|
| 209 |
-
###
|
| 210 |
|
| 211 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 212 |
|
| 213 |
-
###
|
| 214 |
|
| 215 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 216 |
|
| 217 |
-
###
|
| 218 |
|
| 219 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 220 |
|
| 221 |
-
##
|
| 222 |
|
| 223 |
-
###
|
| 224 |
|
| 225 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 226 |
|
| 227 |
-
###
|
| 228 |
|
| 229 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 230 |
|
| 231 |
-
###
|
| 232 |
|
| 233 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 234 |
|
| 235 |
-
##
|
| 236 |
|
| 237 |
-
###
|
| 238 |
|
| 239 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 240 |
|
| 241 |
-
###
|
| 242 |
|
| 243 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 244 |
|
| 245 |
-
###
|
| 246 |
|
| 247 |
```
|
| 248 |
|
|
|
|
| 27 |
- [Citation Information](#citation-information)
|
| 28 |
- [Contributions](#contributions)
|
| 29 |
|
| 30 |
+
## Dataset Description
|
| 31 |
|
| 32 |
- **Homepage:** [http://nlp.uned.es/clef-qa/repository/pastCampaigns.php](http://nlp.uned.es/clef-qa/repository/pastCampaigns.php)
|
| 33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
|
|
| 37 |
- **Size of the generated dataset:** 46.11 MB
|
| 38 |
- **Total amount of disk used:** 51.35 MB
|
| 39 |
|
| 40 |
+
### Dataset Summary
|
| 41 |
|
| 42 |
QA4MRE dataset was created for the CLEF 2011/2012/2013 shared tasks to promote research in
|
| 43 |
question answering and reading comprehension. The dataset contains a supporting
|
|
|
|
| 47 |
Additional gold standard documents are available for two pilot studies: one on
|
| 48 |
alzheimers data, and the other on entrance exams data.
|
| 49 |
|
| 50 |
+
### Supported Tasks
|
| 51 |
|
| 52 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 53 |
|
| 54 |
+
### Languages
|
| 55 |
|
| 56 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 57 |
|
| 58 |
+
## Dataset Structure
|
| 59 |
|
| 60 |
We show detailed information for up to 5 configurations of the dataset.
|
| 61 |
|
| 62 |
+
### Data Instances
|
| 63 |
|
| 64 |
#### 2011.main.DE
|
| 65 |
|
|
|
|
| 116 |
|
| 117 |
```
|
| 118 |
|
| 119 |
+
### Data Fields
|
| 120 |
|
| 121 |
The data fields are the same among all splits.
|
| 122 |
|
|
|
|
| 190 |
- `correct_answer_id`: a `string` feature.
|
| 191 |
- `correct_answer_str`: a `string` feature.
|
| 192 |
|
| 193 |
+
### Data Splits Sample Size
|
| 194 |
|
| 195 |
| name |train|
|
| 196 |
|------------|----:|
|
|
|
|
| 200 |
|2011.main.IT| 120|
|
| 201 |
|2011.main.RO| 120|
|
| 202 |
|
| 203 |
+
## Dataset Creation
|
| 204 |
|
| 205 |
+
### Curation Rationale
|
| 206 |
|
| 207 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 208 |
|
| 209 |
+
### Source Data
|
| 210 |
|
| 211 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 212 |
|
| 213 |
+
### Annotations
|
| 214 |
|
| 215 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 216 |
|
| 217 |
+
### Personal and Sensitive Information
|
| 218 |
|
| 219 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 220 |
|
| 221 |
+
## Considerations for Using the Data
|
| 222 |
|
| 223 |
+
### Social Impact of Dataset
|
| 224 |
|
| 225 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 226 |
|
| 227 |
+
### Discussion of Biases
|
| 228 |
|
| 229 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 230 |
|
| 231 |
+
### Other Known Limitations
|
| 232 |
|
| 233 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 234 |
|
| 235 |
+
## Additional Information
|
| 236 |
|
| 237 |
+
### Dataset Curators
|
| 238 |
|
| 239 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 240 |
|
| 241 |
+
### Licensing Information
|
| 242 |
|
| 243 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 244 |
|
| 245 |
+
### Citation Information
|
| 246 |
|
| 247 |
```
|
| 248 |
|
qa4mre.py
CHANGED
|
@@ -18,12 +18,14 @@
|
|
| 18 |
|
| 19 |
from __future__ import division, print_function
|
| 20 |
|
| 21 |
-
import logging
|
| 22 |
import xml.etree.ElementTree as ET
|
| 23 |
|
| 24 |
import datasets
|
| 25 |
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# pylint: disable=anomalous-backslash-in-string
|
| 28 |
_CITATION = r"""
|
| 29 |
@InProceedings{10.1007/978-3-642-40802-1_29,
|
|
@@ -52,7 +54,7 @@ Additional gold standard documents are available for two pilot studies: one on
|
|
| 52 |
alzheimers data, and the other on entrance exams data.
|
| 53 |
"""
|
| 54 |
|
| 55 |
-
_BASE_URL = "http://
|
| 56 |
|
| 57 |
PATHS = {
|
| 58 |
"2011": {
|
|
@@ -105,7 +107,7 @@ def _get_question(topic_id, topic_name, test_id, document_id, document_str, ques
|
|
| 105 |
correct_answer_str = answer_str
|
| 106 |
|
| 107 |
id_ = "_".join([topic_id, topic_name, test_id, question_id])
|
| 108 |
-
|
| 109 |
|
| 110 |
feats = {
|
| 111 |
"topic_id": topic_id,
|
|
@@ -139,7 +141,7 @@ class Qa4mreConfig(datasets.BuilderConfig):
|
|
| 139 |
raise ValueError("Incorrect track. Track should be one of the following: ", PATHS[year]["_TRACKS"])
|
| 140 |
|
| 141 |
if track.lower() != "main" and language.upper() != "EN":
|
| 142 |
-
|
| 143 |
language = "EN"
|
| 144 |
|
| 145 |
if track.lower() == "main" and language.upper() not in PATHS[year]["_LANGUAGES_MAIN"]:
|
|
@@ -213,7 +215,7 @@ class Qa4mre(datasets.GeneratorBasedBuilder):
|
|
| 213 |
# No default supervised keys because both passage and question are used
|
| 214 |
# to determine the correct answer.
|
| 215 |
supervised_keys=None,
|
| 216 |
-
homepage="http://
|
| 217 |
citation=_CITATION,
|
| 218 |
)
|
| 219 |
|
|
|
|
| 18 |
|
| 19 |
from __future__ import division, print_function
|
| 20 |
|
|
|
|
| 21 |
import xml.etree.ElementTree as ET
|
| 22 |
|
| 23 |
import datasets
|
| 24 |
|
| 25 |
|
| 26 |
+
logger = datasets.logging.get_logger(__name__)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
# pylint: disable=anomalous-backslash-in-string
|
| 30 |
_CITATION = r"""
|
| 31 |
@InProceedings{10.1007/978-3-642-40802-1_29,
|
|
|
|
| 54 |
alzheimers data, and the other on entrance exams data.
|
| 55 |
"""
|
| 56 |
|
| 57 |
+
_BASE_URL = "http://nlp.uned.es/clef-qa/repository/js/scripts/downloadFile.php?file=/var/www/html/nlp/clef-qa/repository/resources/QA4MRE/"
|
| 58 |
|
| 59 |
PATHS = {
|
| 60 |
"2011": {
|
|
|
|
| 107 |
correct_answer_str = answer_str
|
| 108 |
|
| 109 |
id_ = "_".join([topic_id, topic_name, test_id, question_id])
|
| 110 |
+
logger.info("ID: %s", id_)
|
| 111 |
|
| 112 |
feats = {
|
| 113 |
"topic_id": topic_id,
|
|
|
|
| 141 |
raise ValueError("Incorrect track. Track should be one of the following: ", PATHS[year]["_TRACKS"])
|
| 142 |
|
| 143 |
if track.lower() != "main" and language.upper() != "EN":
|
| 144 |
+
logger.warn("Only English documents available for pilot " "tracks. Setting English by default.")
|
| 145 |
language = "EN"
|
| 146 |
|
| 147 |
if track.lower() == "main" and language.upper() not in PATHS[year]["_LANGUAGES_MAIN"]:
|
|
|
|
| 215 |
# No default supervised keys because both passage and question are used
|
| 216 |
# to determine the correct answer.
|
| 217 |
supervised_keys=None,
|
| 218 |
+
homepage="http://nlp.uned.es/clef-qa/repository/pastCampaigns.php",
|
| 219 |
citation=_CITATION,
|
| 220 |
)
|
| 221 |
|