Datasets:
Tasks:
Multiple Choice
Modalities:
Text
Formats:
parquet
Sub-tasks:
multiple-choice-qa
Languages:
English
Size:
10K - 100K
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:** [https://text-machine-lab.github.io/blog/2020/quail/](https://text-machine-lab.github.io/blog/2020/quail/)
|
| 33 |
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
@@ -37,23 +37,23 @@
|
|
| 37 |
- **Size of the generated dataset:** 28.25 MB
|
| 38 |
- **Total amount of disk used:** 34.36 MB
|
| 39 |
|
| 40 |
-
###
|
| 41 |
|
| 42 |
QuAIL is a reading comprehension dataset. QuAIL contains 15K multi-choice questions in texts 300-350 tokens long 4 domains (news, user stories, fiction, blogs).QuAIL is balanced and annotated for question types.
|
| 43 |
|
| 44 |
-
###
|
| 45 |
|
| 46 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 47 |
|
| 48 |
-
###
|
| 49 |
|
| 50 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 51 |
|
| 52 |
-
##
|
| 53 |
|
| 54 |
We show detailed information for up to 5 configurations of the dataset.
|
| 55 |
|
| 56 |
-
###
|
| 57 |
|
| 58 |
#### quail
|
| 59 |
|
|
@@ -83,7 +83,7 @@ This example was too long and was cropped:
|
|
| 83 |
}
|
| 84 |
```
|
| 85 |
|
| 86 |
-
###
|
| 87 |
|
| 88 |
The data fields are the same among all splits.
|
| 89 |
|
|
@@ -101,55 +101,55 @@ The data fields are the same among all splits.
|
|
| 101 |
- `answers`: a `list` of `string` features.
|
| 102 |
- `correct_answer_id`: a `int32` feature.
|
| 103 |
|
| 104 |
-
###
|
| 105 |
|
| 106 |
|name |train|challenge|validation|
|
| 107 |
|-----|----:|--------:|---------:|
|
| 108 |
|quail|10246| 556| 2164|
|
| 109 |
|
| 110 |
-
##
|
| 111 |
|
| 112 |
-
###
|
| 113 |
|
| 114 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 115 |
|
| 116 |
-
###
|
| 117 |
|
| 118 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 119 |
|
| 120 |
-
###
|
| 121 |
|
| 122 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 123 |
|
| 124 |
-
###
|
| 125 |
|
| 126 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 127 |
|
| 128 |
-
##
|
| 129 |
|
| 130 |
-
###
|
| 131 |
|
| 132 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 133 |
|
| 134 |
-
###
|
| 135 |
|
| 136 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 137 |
|
| 138 |
-
###
|
| 139 |
|
| 140 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 141 |
|
| 142 |
-
##
|
| 143 |
|
| 144 |
-
###
|
| 145 |
|
| 146 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 147 |
|
| 148 |
-
###
|
| 149 |
|
| 150 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 151 |
|
| 152 |
-
###
|
| 153 |
|
| 154 |
```
|
| 155 |
@inproceedings{DBLP:conf/aaai/RogersKDR20,
|
|
|
|
| 27 |
- [Citation Information](#citation-information)
|
| 28 |
- [Contributions](#contributions)
|
| 29 |
|
| 30 |
+
## Dataset Description
|
| 31 |
|
| 32 |
- **Homepage:** [https://text-machine-lab.github.io/blog/2020/quail/](https://text-machine-lab.github.io/blog/2020/quail/)
|
| 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:** 28.25 MB
|
| 38 |
- **Total amount of disk used:** 34.36 MB
|
| 39 |
|
| 40 |
+
### Dataset Summary
|
| 41 |
|
| 42 |
QuAIL is a reading comprehension dataset. QuAIL contains 15K multi-choice questions in texts 300-350 tokens long 4 domains (news, user stories, fiction, blogs).QuAIL is balanced and annotated for question types.
|
| 43 |
|
| 44 |
+
### Supported Tasks
|
| 45 |
|
| 46 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 47 |
|
| 48 |
+
### Languages
|
| 49 |
|
| 50 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 51 |
|
| 52 |
+
## Dataset Structure
|
| 53 |
|
| 54 |
We show detailed information for up to 5 configurations of the dataset.
|
| 55 |
|
| 56 |
+
### Data Instances
|
| 57 |
|
| 58 |
#### quail
|
| 59 |
|
|
|
|
| 83 |
}
|
| 84 |
```
|
| 85 |
|
| 86 |
+
### Data Fields
|
| 87 |
|
| 88 |
The data fields are the same among all splits.
|
| 89 |
|
|
|
|
| 101 |
- `answers`: a `list` of `string` features.
|
| 102 |
- `correct_answer_id`: a `int32` feature.
|
| 103 |
|
| 104 |
+
### Data Splits Sample Size
|
| 105 |
|
| 106 |
|name |train|challenge|validation|
|
| 107 |
|-----|----:|--------:|---------:|
|
| 108 |
|quail|10246| 556| 2164|
|
| 109 |
|
| 110 |
+
## Dataset Creation
|
| 111 |
|
| 112 |
+
### Curation Rationale
|
| 113 |
|
| 114 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 115 |
|
| 116 |
+
### Source Data
|
| 117 |
|
| 118 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 119 |
|
| 120 |
+
### Annotations
|
| 121 |
|
| 122 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 123 |
|
| 124 |
+
### Personal and Sensitive Information
|
| 125 |
|
| 126 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 127 |
|
| 128 |
+
## Considerations for Using the Data
|
| 129 |
|
| 130 |
+
### Social Impact of Dataset
|
| 131 |
|
| 132 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 133 |
|
| 134 |
+
### Discussion of Biases
|
| 135 |
|
| 136 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 137 |
|
| 138 |
+
### Other Known Limitations
|
| 139 |
|
| 140 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 141 |
|
| 142 |
+
## Additional Information
|
| 143 |
|
| 144 |
+
### Dataset Curators
|
| 145 |
|
| 146 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 147 |
|
| 148 |
+
### Licensing Information
|
| 149 |
|
| 150 |
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
| 151 |
|
| 152 |
+
### Citation Information
|
| 153 |
|
| 154 |
```
|
| 155 |
@inproceedings{DBLP:conf/aaai/RogersKDR20,
|
quail.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
-
import logging
|
| 2 |
import xml.etree.ElementTree as ET
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
_CITATION = """\
|
| 8 |
@inproceedings{DBLP:conf/aaai/RogersKDR20,
|
| 9 |
author = {Anna Rogers and
|
|
@@ -103,7 +105,7 @@ class Quail(datasets.GeneratorBasedBuilder):
|
|
| 103 |
|
| 104 |
def _generate_examples(self, filepath):
|
| 105 |
"""This function returns the examples in the raw (text) form."""
|
| 106 |
-
|
| 107 |
root = ET.parse(filepath).getroot()
|
| 108 |
for text_tag in root.iterfind("text"):
|
| 109 |
text_id = text_tag.get("id")
|
|
|
|
|
|
|
| 1 |
import xml.etree.ElementTree as ET
|
| 2 |
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
|
| 6 |
+
logger = datasets.logging.get_logger(__name__)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
_CITATION = """\
|
| 10 |
@inproceedings{DBLP:conf/aaai/RogersKDR20,
|
| 11 |
author = {Anna Rogers and
|
|
|
|
| 105 |
|
| 106 |
def _generate_examples(self, filepath):
|
| 107 |
"""This function returns the examples in the raw (text) form."""
|
| 108 |
+
logger.info("generating examples from = %s", filepath)
|
| 109 |
root = ET.parse(filepath).getroot()
|
| 110 |
for text_tag in root.iterfind("text"):
|
| 111 |
text_id = text_tag.get("id")
|