Datasets:
GEM
/

Tasks:
Other
Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
parquet-converter commited on
Commit
bd19f4f
1 Parent(s): b6c76a7

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,47 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.model filter=lfs diff=lfs merge=lfs -text
11
- *.msgpack filter=lfs diff=lfs merge=lfs -text
12
- *.onnx filter=lfs diff=lfs merge=lfs -text
13
- *.ot filter=lfs diff=lfs merge=lfs -text
14
- *.parquet filter=lfs diff=lfs merge=lfs -text
15
- *.pb filter=lfs diff=lfs merge=lfs -text
16
- *.pt filter=lfs diff=lfs merge=lfs -text
17
- *.pth filter=lfs diff=lfs merge=lfs -text
18
- *.rar filter=lfs diff=lfs merge=lfs -text
19
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
- *.tar.* filter=lfs diff=lfs merge=lfs -text
21
- *.tflite filter=lfs diff=lfs merge=lfs -text
22
- *.tgz filter=lfs diff=lfs merge=lfs -text
23
- *.wasm filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- # Audio files - uncompressed
29
- *.pcm filter=lfs diff=lfs merge=lfs -text
30
- *.sam filter=lfs diff=lfs merge=lfs -text
31
- *.raw filter=lfs diff=lfs merge=lfs -text
32
- # Audio files - compressed
33
- *.aac filter=lfs diff=lfs merge=lfs -text
34
- *.flac filter=lfs diff=lfs merge=lfs -text
35
- *.mp3 filter=lfs diff=lfs merge=lfs -text
36
- *.ogg filter=lfs diff=lfs merge=lfs -text
37
- *.wav filter=lfs diff=lfs merge=lfs -text
38
- . filter=lfs diff=lfs merge=lfs -text
39
- test.csv filter=lfs diff=lfs merge=lfs -text
40
- train.csv filter=lfs diff=lfs merge=lfs -text
41
- valid.csv filter=lfs diff=lfs merge=lfs -text
42
- train.json filter=lfs diff=lfs merge=lfs -text
43
- valid.json filter=lfs diff=lfs merge=lfs -text
44
- test.json filter=lfs diff=lfs merge=lfs -text
45
- test.jsonl filter=lfs diff=lfs merge=lfs -text
46
- train.jsonl filter=lfs diff=lfs merge=lfs -text
47
- valid.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
FairytaleQA.json DELETED
@@ -1,180 +0,0 @@
1
- {
2
- "overview": {
3
- "what": {
4
- "dataset": "The FairytaleQA Dataset is an English-language dataset focusing on narrative comprehension of kindergarten to eighth-grade students. Generated by educational experts based on an evidence-based theoretical framework, FairytaleQA consists of 10,580 explicit and implicit questions derived from 278 children-friendly stories, covering seven types of narrative elements or relations. The Dataset was corrected to support both the tasks of Question Generation and Question Answering."
5
- },
6
- "where": {
7
- "has-leaderboard": "yes",
8
- "leaderboard-url": "[PapersWithCode](https://paperswithcode.com/sota/question-generation-on-fairytaleqa)",
9
- "leaderboard-description": "The task was to generate questions corresponding to the given answers and the story context. Success on the Question Generation task is typically measured by achieving a high ROUGE-L score to the reference ground-truth question.",
10
- "data-url": "[Github](https://github.com/uci-soe/FairytaleQAData)",
11
- "paper-url": "[ArXiv](https://arxiv.org/abs/2203.13947)",
12
- "paper-bibtext": "@inproceedings{xu2022fairytaleqa,\n author={Xu, Ying and Wang, Dakuo and Yu, Mo and Ritchie, Daniel and Yao, Bingsheng and Wu, Tongshuang and Zhang, Zheng and Li, Toby Jia-Jun and Bradford, Nora and Sun, Branda and Hoang, Tran Bao and Sang, Yisi and Hou, Yufang and Ma, Xiaojuan and Yang, Diyi and Peng, Nanyun and Yu, Zhou and Warschauer, Mark},\n title = {Fantastic Questions and Where to Find Them: Fairytale{QA} -- An Authentic Dataset for Narrative Comprehension},\n publisher = {Association for Computational Linguistics},\n year = {2022}\n}",
13
- "contact-name": "Ying Xu, Dakuo Wang",
14
- "contact-email": "[email protected], [email protected]"
15
- },
16
- "languages": {
17
- "is-multilingual": "no",
18
- "license": "unknown: License information unavailable",
19
- "task-other": "N/A",
20
- "language-names": [
21
- "English"
22
- ],
23
- "language-dialects": "[N/A]",
24
- "intended-use": "The purpose of this dataset is to help develop systems to facilitate assessment and training of narrative comprehension skills for children in education domain. The dataset distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way. \n\nThis dataset is suitable for developing models to automatically generate questions and QA-Pairs that satisfy the need for a continuous supply of new questions, which can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills.",
25
- "language-speakers": "[N/A]",
26
- "license-other": "N/A",
27
- "task": "Question Generation",
28
- "communicative": "The task was to generate questions corresponding to the given answers and the story context. Models trained for this task can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills."
29
- },
30
- "credit": {
31
- "organization-type": [
32
- "academic"
33
- ],
34
- "organization-names": "University of California Irvine",
35
- "creators": "Ying Xu (University of California Irvine); Dakuo Wang (IBM Research); Mo Yu (IBM Research); Daniel Ritchie (University of California Irvine); Bingsheng Yao (Rensselaer Polytechnic Institute); Tongshuang Wu (University of Washington); Zheng Zhang (University of Notre Dame); Toby Jia-Jun Li (University of Notre Dame); Nora Bradford (University of California Irvine); Branda Sun (University of California Irvine); Tran Bao Hoang (University of California Irvine); Yisi Sang (Syracuse University); Yufang Hou (IBM Research Ireland); Xiaojuan Ma (Hong Kong Univ. of Sci and Tech); Diyi Yang (Georgia Institute of Technology); Nanyun Peng (University of California Los Angeles); Zhou Yu (Columbia University); Mark Warschauer (University of California Irvine)",
36
- "funding": "Schmidt Futures",
37
- "gem-added-by": "Dakuo Wang (IBM Research); Bingsheng Yao (Rensselaer Polytechnic Institute); Ying Xu (University of California Irvine)"
38
- },
39
- "structure": {
40
- "data-fields": "- `story_name`: a string of the story name to which the story section content belongs. Full story data can be found [here](https://github.com/uci-soe/FairytaleQAData).\n\n- `content`: a string of the story section(s) content related to the experts' labeled QA-pair. Used as the input for both Question Generation and Question Answering tasks. \n\n- `question`: a string of the question content. Used as the input for Question Answering task and as the output for Question Generation task. \n\n- `answer`: a string of the answer content for all splits. Used as the input for Question Generation task and as the output for Question Answering task.\n\n- `gem_id`: a string of id follows GEM naming convention ```GEM-${DATASET_NAME}-${SPLIT-NAME}-${id}``` where id is an incrementing number starting at 1\n\n- `target`: a string of the question content being used for training\n\n- `references`: a list of string containing the question content being used for automatic eval\n\n- `local_or_sum`: a string of either local or summary, indicating whether the QA is related to one story section or multiple sections \n\n- `attribute`: a string of one of character, causal relationship, action, setting, feeling, prediction, or outcome resolution. Classification of the QA by education experts annotators via 7 narrative elements on an established framework\n \n- `ex_or_im`: a string of either explicit or implicit, indicating whether the answers can be directly found in the story content or cannot be directly from the story content.\n",
41
- "structure-example": "{'story_name': 'self-did-it', \n'content': '\" what is your name ? \" asked the girl from underground . \" self is my name , \" said the woman . that seemed a curious name to the girl , and she once more began to pull the fire apart . then the woman grew angry and began to scold , and built it all up again . thus they went on for a good while ; but at last , while they were in the midst of their pulling apart and building up of the fire , the woman upset the tar - barrel on the girl from underground . then the latter screamed and ran away , crying : \" father , father ! self burned me ! \" \" nonsense , if self did it , then self must suffer for it ! \" came the answer from below the hill .', \n'answer': 'the woman told the girl her name was self .', \n'question': \"why did the girl's father think the girl burned herself ?\", \n'gem_id': 'GEM-FairytaleQA-test-1006', \n'target': \"why did the girl's father think the girl burned herself ?\", \n'references': [\"why did the girl's father think the girl burned herself ?\"], \n'local_or_sum': 'local', \n'attribute': 'causal relationship', \n'ex_or_im': 'implicit'}",
42
- "structure-splits": "The data is split into a train, validation, and test split randomly. The final split sizes are as follows:\n\n| | Train | Validation | Test |\n| ----- | ----- | ----- | ----- |\n| # Books | 232 | 23 | 23 |\n| # QA-Pairs | 8548 | 1025 |1007 |",
43
- "structure-splits-criteria": "The books are randomly split into train/validation/test splits. We control the ratio of QA-pair numbers in train:validation:test splits close to 8:1:1",
44
- "structure-outlier": "[N/A]",
45
- "structure-labels": "A typical data point comprises a question, the corresponding story content, and one answer. Education expert annotators labeled whether the answer is locally relevant to one story section or requires summarization capabilities from multiple story sections, and whether the answers are explicit (can be directly found in the stories) or implicit (cannot be directly found in the story text). Additionally, education expert annotators categorize the QA-pairs via 7 narrative elements from an establish framework.",
46
- "structure-description": "[N/A]"
47
- }
48
- },
49
- "curation": {
50
- "original": {
51
- "is-aggregated": "no",
52
- "aggregated-sources": "N/A",
53
- "rationale": "FairytaleQA was built to focus on comprehension of narratives in the education domain, targeting students from kindergarten to eighth grade. We focus on narrative comprehension for 1. it is a high-level comprehension skill strongly predictive of reading achievement and plays a central role in daily life as people frequently encounter narratives in different forms, 2. narrative stories have a clear structure of specific elements and relations among these elements, and there are existing validated narrative comprehension frameworks around this structure, which provides a basis for developing the annotation schema for our dataset.",
54
- "communicative": "The purpose of this dataset is to help develop systems to facilitate assessment and training of narrative comprehension skills for children in education domain."
55
- },
56
- "language": {
57
- "found": [
58
- "Single website"
59
- ],
60
- "crowdsourced": [],
61
- "created": "N/A",
62
- "machine-generated": "N/A",
63
- "validated": "validated by data curator",
64
- "is-filtered": "manually",
65
- "filtered-criteria": "For each story, we evaluated the reading difficulty level using the [textstat](https://pypi.org/project/textstat/) Python package, primarily based on sentence length, word length, and commonness of words. We excluded stories that are at 10th grade level or above.",
66
- "obtained": [
67
- "Found"
68
- ],
69
- "producers-description": "The fairytale story texts are from the [Project Gutenberg](https://www.gutenberg.org/) website",
70
- "topics": "We gathered the text from the Project Gutenberg website, using \u201cfairytale\u201d as the search term. ",
71
- "pre-processed": "Due to a large number of fairytales found, we used the most popular stories based on the number of downloads since these stories are presumably of higher quality. To ensure the readability of the text, we made a small number of minor revisions to some obviously outdated vocabulary (e.g., changing \u201cere\u201d to \u201cbefore\u201d) and the unconventional use of punctuation (e.g., changing consecutive semi-colons to periods). \n\nThese texts were broken down into small sections based on their semantic content by our annotators. The annotators were instructed to split the story into sections of 100-300 words that also contain meaningful content and are separated at natural story breaks. An initial annotator would split the story, and this would be reviewed by a cross-checking annotator. Most of the resulting sections were one natural paragraph of the original text."
72
- },
73
- "annotations": {
74
- "origin": "expert created",
75
- "rater-number": "2<n<10",
76
- "rater-qualifications": "All of these annotators have a B.A. degree in education, psychology, or cognitive science and have substantial experience in teaching and reading assessment. These annotators were supervised by three experts in literacy education.",
77
- "rater-training-num": "2",
78
- "rater-test-num": "3",
79
- "rater-annotation-service-bool": "no",
80
- "rater-annotation-service": [],
81
- "values": "The dataset annotation distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way.",
82
- "quality-control": "validated by data curators",
83
- "quality-control-details": "The annotators were instructed to imagine that they were creating questions to test elementary or middle school students in the process of reading a complete story. We required the annotators to generate only natural, open-ended questions, avoiding \u201cyes-\u201d or \u201cno-\u201d questions. We also instructed them to provide a diverse set of questions about 7 different narrative elements, and with both implicit and explicit questions. \n\nWe asked the annotators to also generate answers for each of their questions. We asked them to provide the shortest possible answers but did not restrict them to complete sentences or short phrases. We also asked the annotators to label which section(s) the question and answer was from.\n\nAll annotators received a two-week training in which each of them was familiarized with the coding template and conducted practice coding on the same five stories. The practice QA pairs were then reviewed by the other annotators and the three experts, and discrepancies among annotators were discussed. During the annotation process, the team met once every week to review and discuss each member\u2019s work. All QA pairs were cross-checked by two annotators, and 10% of the QA pairs were additionally checked by the expert supervisor.\n\nFor the 46 stories used as the evaluation set, we annotate a second reference answer by asking an annotator to independently read the story and answer the questions generated by others."
84
- },
85
- "consent": {
86
- "has-consent": "yes",
87
- "consent-policy": "During the annotation process, the team met once every week to review and discuss each member\u2019s work. All QA pairs were cross-checked by two annotators, and 10% of the QA pairs were additionally checked by the expert supervisor.",
88
- "consent-other": "Aside from Question Generation task, the data creators and curators used this data for Question Answering, and QA-Pair Generation tasks, and to identify social stereotypes represented in story narratives.",
89
- "no-consent-justification": "N/A"
90
- },
91
- "pii": {
92
- "has-pii": "no PII",
93
- "no-pii-justification": "The story content is from publically available knowledge website and the annotated QA-pairs are about general knowledge to the story content without references to the author or to any persons",
94
- "is-pii-identified": "N/A",
95
- "pii-identified-method": "N/A",
96
- "is-pii-replaced": "N/A",
97
- "pii-replaced-method": "N/A",
98
- "pii-categories": []
99
- },
100
- "maintenance": {
101
- "has-maintenance": "yes",
102
- "description": "We plan to host various splits for the FairytaleQA dataset to better serve various types of research interests. We have the original data for 2 different split approaches including train/validation/test splits and split by fairytale origins. We are also plan to host the dataset on multiple platforms for various tasks. ",
103
- "contact": "Daniel Ritchie",
104
- "contestation-mechanism": "no mechanism",
105
- "contestation-link": "N/A",
106
- "contestation-description": "N/A"
107
- }
108
- },
109
- "gem": {
110
- "rationale": {
111
- "sole-task-dataset": "no",
112
- "sole-language-task-dataset": "N/A",
113
- "distinction-description": "N/A",
114
- "contribution": "The dataset distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way.\n\n",
115
- "model-ability": "This dataset is suitable for developing models to automatically generate questions or QA-pairs that satisfy the need for a continuous supply of new questions, which can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills."
116
- },
117
- "curation": {
118
- "has-additional-curation": "yes",
119
- "modification-types": [
120
- "data points removed"
121
- ],
122
- "modification-description": "The original data contains two answers by different annotators in validation/test splits, we removed the 2nd answer for GEM version because it is not being used for the Question Generation task. ",
123
- "has-additional-splits": "no",
124
- "additional-splits-description": "N/A",
125
- "additional-splits-capacicites": "N/A"
126
- },
127
- "starting": {
128
- "research-pointers": "[N/A]"
129
- }
130
- },
131
- "results": {
132
- "results": {
133
- "other-metrics-definitions": "N/A",
134
- "has-previous-results": "yes",
135
- "current-evaluation": "N/A",
136
- "previous-results": "A [BART-based model](https://huggingface.co/facebook/bart-large) currently achieves a [ROUGE-L of 0.527/0.527](https://github.com/uci-soe/FairytaleQAData) on valid/test splits, which is reported as the baseline experiment for the dataset [paper](https://arxiv.org/pdf/2203.13947.pdf).",
137
- "metrics": [
138
- "ROUGE"
139
- ],
140
- "model-abilities": "We are able to measure model's capabilities of generating various types of questions that corresponds to different narrative elements with the FairytaleQA dataset on the Question Generation Task",
141
- "original-evaluation": "The task was to generate questions corresponding to the given answers and the story context. Success on this task is typically measured by achieving a high [ROUGE](https://huggingface.co/metrics/rouge) score to the reference ground-truth questions. "
142
- }
143
- },
144
- "considerations": {
145
- "pii": {
146
- "risks-description": "[N/A]"
147
- },
148
- "licenses": {
149
- "dataset-restrictions-other": "N/A",
150
- "data-copyright-other": "N/A",
151
- "dataset-restrictions": [
152
- "research use only"
153
- ],
154
- "data-copyright": [
155
- "public domain"
156
- ]
157
- },
158
- "limitations": {
159
- "data-technical-limitations": "We noticed that human results are obtained via cross-estimation between the two annotated answers, thus are underestimated. One possibility for future work is to conduct a large-scale human annotation to collect more answers per question and then leverage the massively annotated answers to better establish a human performance evaluation.",
160
- "data-unsuited-applications": "The QA-pairs annotated by education experts are targeting the audience of children from kindergarten to eighth grade, so the difficulty of QA-pairs are not suitable to compare with other existing dataset that are sourced from knowledge graphs or knowledge bases like Wikipedia.",
161
- "data-discouraged-use": "[N/A]"
162
- }
163
- },
164
- "context": {
165
- "previous": {
166
- "is-deployed": "yes - models trained on this dataset",
167
- "described-risks": "[N/A]",
168
- "changes-from-observation": "[N/A]"
169
- },
170
- "underserved": {
171
- "helps-underserved": "yes",
172
- "underserved-description": "From the educational perspective, given that reading comprehension is a multicomponent skill, it is ideal for comprehension questions to be able to identify students\u2019 performance in specific sub-skills, thus allowing teachers to provide tailored guidance. "
173
- },
174
- "biases": {
175
- "has-biases": "unsure",
176
- "bias-analyses": "N/A",
177
- "speaker-distibution": "[N/A]"
178
- }
179
- }
180
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
FairytaleQA.py DELETED
@@ -1,199 +0,0 @@
1
-
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- # TODO: Address all TODOs and remove all explanatory comments
16
- """FairytaleQA: An Authentic Dataset for children's Narrative Comprehension """
17
-
18
-
19
- import csv
20
- import json
21
- import os
22
-
23
- import datasets
24
-
25
- logger = datasets.logging.get_logger(__name__)
26
-
27
-
28
-
29
- # TODO: Add BibTeX citation
30
- # Find for instance the citation on arxiv or on the dataset repo/website
31
- _CITATION = """\
32
- @inproceedings{xu2022fairytaleqa,
33
- author={Xu, Ying and Wang, Dakuo and Yu, Mo and Ritchie, Daniel and Yao, Bingsheng and Wu, Tongshuang and Zhang, Zheng and Li, Toby Jia-Jun and Bradford, Nora and Sun, Branda and Hoang, Tran Bao and Sang, Yisi and Hou, Yufang and Ma, Xiaojuan and Yang, Diyi and Peng, Nanyun and Yu, Zhou and Warschauer, Mark},
34
- title = {Fantastic Questions and Where to Find Them: Fairytale{QA} -- An Authentic Dataset for Narrative Comprehension},
35
- publisher = {Association for Computational Linguistics},
36
- year = {2022}
37
- }
38
- """
39
-
40
- # TODO: Add description of the dataset here
41
- # You can copy an official description
42
- _DESCRIPTION = """\
43
- The FairytaleQA dataset focusing on narrative comprehension of kindergarten to eighth-grade students. Generated by educational experts based on an evidence-based theoretical framework, FairytaleQA consists of 10,580 explicit and implicit questions derived from 278 children-friendly stories, covering seven types of narrative elements or relations. This is for the Question Generation Task of FairytaleQA.
44
- """
45
-
46
- # TODO: Add a link to an official homepage for the dataset here
47
- _HOMEPAGE = "https://github.com/uci-soe/FairytaleQAData"
48
-
49
- # TODO: Add the licence for the dataset here if you can find it
50
- _LICENSE = ""
51
-
52
- # TODO: Add link to the official dataset URLs here
53
- # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
54
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
55
-
56
- _URLS = {
57
- "train": "train.json",
58
- "validation": "valid.json",
59
- "test": "test.json"
60
- }
61
-
62
-
63
- # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
64
- class FairytaleQA(datasets.GeneratorBasedBuilder):
65
- """TODO: Short description of my dataset."""
66
-
67
- # VERSION = datasets.Version("1.1.0")
68
-
69
- # This is an example of a dataset with multiple configurations.
70
- # If you don't want/need to define several sub-sets in your dataset,
71
- # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
72
-
73
- # If you need to make complex sub-parts in the datasets with configurable options
74
- # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
75
- # BUILDER_CONFIG_CLASS = MyBuilderConfig
76
-
77
- # You will be able to load one or the other configurations in the following list with
78
- # data = datasets.load_dataset('my_dataset', 'first_domain')
79
- # data = datasets.load_dataset('my_dataset', 'second_domain')
80
-
81
- VERSION = datasets.Version("1.0.0")
82
-
83
- # DEFAULT_CONFIG_NAME = "fairytaleqa"
84
-
85
- # BUILDER_CONFIGS = [
86
- # FairytaleQAConfig(
87
- # name="plain_text",
88
- # description="Plain Text")
89
- # ]
90
-
91
- # DEFAULT_CONFIG_NAME = "train" # It's not mandatory to have a default configuration. Just use one if it make sense.
92
-
93
- def _info(self):
94
- # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
95
-
96
- features = datasets.Features(
97
- {
98
- "story_name": datasets.Value("string"),
99
- "content": datasets.Value("string"),
100
- "answer": datasets.Value("string"),
101
- "question": datasets.Value("string"),
102
- "gem_id": datasets.Value("string"),
103
- "target": datasets.Value("string"),
104
- "references":[datasets.Value("string")],
105
- "local_or_sum": datasets.Value("string"),
106
- "attribute": datasets.Value("string"),
107
- "ex_or_im": datasets.Value("string")
108
- # These are the features of your dataset like images, labels ...
109
- }
110
- )
111
-
112
-
113
- return datasets.DatasetInfo(
114
- # This is the description that will appear on the datasets page.
115
- description=_DESCRIPTION,
116
- # This defines the different columns of the dataset and their types
117
- features=features, # Here we define them above because they are different between the two configurations
118
- # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
119
- # specify them. They'll be used if as_supervised=True in builder.as_dataset.
120
- # supervised_keys=("sentence", "label"),
121
- supervised_keys=None,
122
- # Homepage of the dataset for documentation
123
- homepage=_HOMEPAGE,
124
- # License for the dataset if available
125
- license=_LICENSE,
126
- # Citation for the dataset
127
- citation=_CITATION,
128
- )
129
-
130
- def _split_generators(self, dl_manager):
131
- # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
132
- # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
133
-
134
- # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
135
- # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
136
- # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
137
- # urls = _URLS[self.config.name]
138
- downloaded_files = dl_manager.download_and_extract(_URLS)
139
- return [
140
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={
141
- "filepath": downloaded_files["train"],
142
- "split": "train"}),
143
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={
144
- "filepath": downloaded_files["validation"],
145
- "split": "validation"}),
146
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={
147
- "filepath": downloaded_files["test"],
148
- "split": "test"})
149
- ]
150
-
151
- # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
152
- def _generate_examples(self, filepath, split, filepaths=None, lang=None):
153
- # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
154
- # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
155
- logger.info("generating examples from = %s", filepath)
156
-
157
- with open(filepath, encoding="utf-8") as f:
158
-
159
- # json_data = json.load(f)
160
-
161
-
162
- for id_, row in enumerate(f):
163
- data = json.loads(row)
164
- story_name = data['story_name']
165
- content = data['content']
166
- answer = data['answer']
167
- question = data['question']
168
- local_or_sum = data['local_or_sum']
169
- attribute = data['attribute']
170
- ex_or_im = data['ex_or_im']
171
- # data = json.loads(row)
172
-
173
- yield id_, {
174
- "story_name": story_name,
175
- "content": content,
176
- "answer": answer,
177
- "question": question,
178
- "gem_id": f"GEM-FairytaleQA-{split}-{id_}",
179
- "target": question,
180
- "references": [] if split == "train" else [ question ],
181
- "local_or_sum": local_or_sum,
182
- "attribute": attribute,
183
- "ex_or_im": ex_or_im
184
- }
185
- # yield id_, {
186
- # "story_name": data['story_name'],
187
- # "content": data['content'],
188
- # "answer": data['answer'],
189
- # "gem_id": f"GEM-FairytaleQA-{split}-{id_}",
190
- # "target": data['question'],
191
- # "references": [] if split == "train" else [ data['question'] ],
192
- # "local_or_sum": data['local_or_sum'],
193
- # "attribute": data['attribute'],
194
- # "ex_or_im": data['ex_or_im']
195
- # }
196
-
197
-
198
-
199
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,686 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-created
4
- language_creators:
5
- - unknown
6
- language:
7
- - en
8
- license:
9
- - unknown
10
- multilinguality:
11
- - unknown
12
- size_categories:
13
- - unknown
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - other
18
- task_ids: []
19
- pretty_name: FairytaleQA
20
- tags:
21
- - question-generation
22
- ---
23
-
24
- # Dataset Card for GEM/FairytaleQA
25
-
26
- ## Dataset Description
27
-
28
- - **Homepage:** [Needs More Information]
29
- - **Repository:** https://github.com/uci-soe/FairytaleQAData
30
- - **Paper:** https://arxiv.org/abs/2203.13947
31
- - **Leaderboard:** https://paperswithcode.com/sota/question-generation-on-fairytaleqa
32
- - **Point of Contact:** Ying Xu, Dakuo Wang
33
-
34
- ### Link to Main Data Card
35
-
36
- You can find the main data card on the [GEM Website](https://gem-benchmark.com/data_cards/FairytaleQA).
37
-
38
- ### Dataset Summary
39
-
40
- The FairytaleQA Dataset is an English-language dataset focusing on narrative comprehension of kindergarten to eighth-grade students. Generated by educational experts based on an evidence-based theoretical framework, FairytaleQA consists of 10,580 explicit and implicit questions derived from 278 children-friendly stories, covering seven types of narrative elements or relations. The Dataset was corrected to support both the tasks of Question Generation and Question Answering.
41
-
42
- You can load the dataset via:
43
- ```
44
- import datasets
45
- data = datasets.load_dataset('GEM/FairytaleQA')
46
- ```
47
- The data loader can be found [here](https://huggingface.co/datasets/GEM/FairytaleQA).
48
-
49
- #### paper
50
- [ArXiv](https://arxiv.org/abs/2203.13947)
51
-
52
- #### authors
53
- Ying Xu (University of California Irvine); Dakuo Wang (IBM Research); Mo Yu (IBM Research); Daniel Ritchie (University of California Irvine); Bingsheng Yao (Rensselaer Polytechnic Institute); Tongshuang Wu (University of Washington); Zheng Zhang (University of Notre Dame); Toby Jia-Jun Li (University of Notre Dame); Nora Bradford (University of California Irvine); Branda Sun (University of California Irvine); Tran Bao Hoang (University of California Irvine); Yisi Sang (Syracuse University); Yufang Hou (IBM Research Ireland); Xiaojuan Ma (Hong Kong Univ. of Sci and Tech); Diyi Yang (Georgia Institute of Technology); Nanyun Peng (University of California Los Angeles); Zhou Yu (Columbia University); Mark Warschauer (University of California Irvine)
54
-
55
- ## Dataset Overview
56
-
57
- ### Where to find the Data and its Documentation
58
-
59
- #### Download
60
-
61
- <!-- info: What is the link to where the original dataset is hosted? -->
62
- <!-- scope: telescope -->
63
- [Github](https://github.com/uci-soe/FairytaleQAData)
64
-
65
- #### Paper
66
-
67
- <!-- info: What is the link to the paper describing the dataset (open access preferred)? -->
68
- <!-- scope: telescope -->
69
- [ArXiv](https://arxiv.org/abs/2203.13947)
70
-
71
- #### BibTex
72
-
73
- <!-- info: Provide the BibTex-formatted reference for the dataset. Please use the correct published version (ACL anthology, etc.) instead of google scholar created Bibtex. -->
74
- <!-- scope: microscope -->
75
- @inproceedings{xu2022fairytaleqa,
76
- author={Xu, Ying and Wang, Dakuo and Yu, Mo and Ritchie, Daniel and Yao, Bingsheng and Wu, Tongshuang and Zhang, Zheng and Li, Toby Jia-Jun and Bradford, Nora and Sun, Branda and Hoang, Tran Bao and Sang, Yisi and Hou, Yufang and Ma, Xiaojuan and Yang, Diyi and Peng, Nanyun and Yu, Zhou and Warschauer, Mark},
77
- title = {Fantastic Questions and Where to Find Them: Fairytale{QA} -- An Authentic Dataset for Narrative Comprehension},
78
- publisher = {Association for Computational Linguistics},
79
- year = {2022}
80
- }
81
-
82
- #### Contact Name
83
-
84
- <!-- quick -->
85
- <!-- info: If known, provide the name of at least one person the reader can contact for questions about the dataset. -->
86
- <!-- scope: periscope -->
87
- Ying Xu, Dakuo Wang
88
-
89
- #### Contact Email
90
-
91
- <!-- info: If known, provide the email of at least one person the reader can contact for questions about the dataset. -->
92
- <!-- scope: periscope -->
93
94
-
95
- #### Has a Leaderboard?
96
-
97
- <!-- info: Does the dataset have an active leaderboard? -->
98
- <!-- scope: telescope -->
99
- yes
100
-
101
- #### Leaderboard Link
102
-
103
- <!-- info: Provide a link to the leaderboard. -->
104
- <!-- scope: periscope -->
105
- [PapersWithCode](https://paperswithcode.com/sota/question-generation-on-fairytaleqa)
106
-
107
- #### Leaderboard Details
108
-
109
- <!-- info: Briefly describe how the leaderboard evaluates models. -->
110
- <!-- scope: microscope -->
111
- The task was to generate questions corresponding to the given answers and the story context. Success on the Question Generation task is typically measured by achieving a high ROUGE-L score to the reference ground-truth question.
112
-
113
-
114
- ### Languages and Intended Use
115
-
116
- #### Multilingual?
117
-
118
- <!-- quick -->
119
- <!-- info: Is the dataset multilingual? -->
120
- <!-- scope: telescope -->
121
- no
122
-
123
- #### Covered Dialects
124
-
125
- <!-- info: What dialects are covered? Are there multiple dialects per language? -->
126
- <!-- scope: periscope -->
127
- [N/A]
128
-
129
- #### Covered Languages
130
-
131
- <!-- quick -->
132
- <!-- info: What languages/dialects are covered in the dataset? -->
133
- <!-- scope: telescope -->
134
- `English`
135
-
136
- #### Whose Language?
137
-
138
- <!-- info: Whose language is in the dataset? -->
139
- <!-- scope: periscope -->
140
- [N/A]
141
-
142
- #### License
143
-
144
- <!-- quick -->
145
- <!-- info: What is the license of the dataset? -->
146
- <!-- scope: telescope -->
147
- unknown: License information unavailable
148
-
149
- #### Intended Use
150
-
151
- <!-- info: What is the intended use of the dataset? -->
152
- <!-- scope: microscope -->
153
- The purpose of this dataset is to help develop systems to facilitate assessment and training of narrative comprehension skills for children in education domain. The dataset distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way.
154
-
155
- This dataset is suitable for developing models to automatically generate questions and QA-Pairs that satisfy the need for a continuous supply of new questions, which can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills.
156
-
157
- #### Primary Task
158
-
159
- <!-- info: What primary task does the dataset support? -->
160
- <!-- scope: telescope -->
161
- Question Generation
162
-
163
- #### Communicative Goal
164
-
165
- <!-- quick -->
166
- <!-- info: Provide a short description of the communicative goal of a model trained for this task on this dataset. -->
167
- <!-- scope: periscope -->
168
- The task was to generate questions corresponding to the given answers and the story context. Models trained for this task can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills.
169
-
170
-
171
- ### Credit
172
-
173
- #### Curation Organization Type(s)
174
-
175
- <!-- info: In what kind of organization did the dataset curation happen? -->
176
- <!-- scope: telescope -->
177
- `academic`
178
-
179
- #### Curation Organization(s)
180
-
181
- <!-- info: Name the organization(s). -->
182
- <!-- scope: periscope -->
183
- University of California Irvine
184
-
185
- #### Dataset Creators
186
-
187
- <!-- info: Who created the original dataset? List the people involved in collecting the dataset and their affiliation(s). -->
188
- <!-- scope: microscope -->
189
- Ying Xu (University of California Irvine); Dakuo Wang (IBM Research); Mo Yu (IBM Research); Daniel Ritchie (University of California Irvine); Bingsheng Yao (Rensselaer Polytechnic Institute); Tongshuang Wu (University of Washington); Zheng Zhang (University of Notre Dame); Toby Jia-Jun Li (University of Notre Dame); Nora Bradford (University of California Irvine); Branda Sun (University of California Irvine); Tran Bao Hoang (University of California Irvine); Yisi Sang (Syracuse University); Yufang Hou (IBM Research Ireland); Xiaojuan Ma (Hong Kong Univ. of Sci and Tech); Diyi Yang (Georgia Institute of Technology); Nanyun Peng (University of California Los Angeles); Zhou Yu (Columbia University); Mark Warschauer (University of California Irvine)
190
-
191
- #### Funding
192
-
193
- <!-- info: Who funded the data creation? -->
194
- <!-- scope: microscope -->
195
- Schmidt Futures
196
-
197
- #### Who added the Dataset to GEM?
198
-
199
- <!-- info: Who contributed to the data card and adding the dataset to GEM? List the people+affiliations involved in creating this data card and who helped integrate this dataset into GEM. -->
200
- <!-- scope: microscope -->
201
- Dakuo Wang (IBM Research); Bingsheng Yao (Rensselaer Polytechnic Institute); Ying Xu (University of California Irvine)
202
-
203
-
204
- ### Dataset Structure
205
-
206
- #### Data Fields
207
-
208
- <!-- info: List and describe the fields present in the dataset. -->
209
- <!-- scope: telescope -->
210
- - `story_name`: a string of the story name to which the story section content belongs. Full story data can be found [here](https://github.com/uci-soe/FairytaleQAData).
211
-
212
- - `content`: a string of the story section(s) content related to the experts' labeled QA-pair. Used as the input for both Question Generation and Question Answering tasks.
213
-
214
- - `question`: a string of the question content. Used as the input for Question Answering task and as the output for Question Generation task.
215
-
216
- - `answer`: a string of the answer content for all splits. Used as the input for Question Generation task and as the output for Question Answering task.
217
-
218
- - `gem_id`: a string of id follows GEM naming convention ```GEM-${DATASET_NAME}-${SPLIT-NAME}-${id}``` where id is an incrementing number starting at 1
219
-
220
- - `target`: a string of the question content being used for training
221
-
222
- - `references`: a list of string containing the question content being used for automatic eval
223
-
224
- - `local_or_sum`: a string of either local or summary, indicating whether the QA is related to one story section or multiple sections
225
-
226
- - `attribute`: a string of one of character, causal relationship, action, setting, feeling, prediction, or outcome resolution. Classification of the QA by education experts annotators via 7 narrative elements on an established framework
227
-
228
- - `ex_or_im`: a string of either explicit or implicit, indicating whether the answers can be directly found in the story content or cannot be directly from the story content.
229
-
230
-
231
- #### Reason for Structure
232
-
233
- <!-- info: How was the dataset structure determined? -->
234
- <!-- scope: microscope -->
235
- [N/A]
236
-
237
- #### How were labels chosen?
238
-
239
- <!-- info: How were the labels chosen? -->
240
- <!-- scope: microscope -->
241
- A typical data point comprises a question, the corresponding story content, and one answer. Education expert annotators labeled whether the answer is locally relevant to one story section or requires summarization capabilities from multiple story sections, and whether the answers are explicit (can be directly found in the stories) or implicit (cannot be directly found in the story text). Additionally, education expert annotators categorize the QA-pairs via 7 narrative elements from an establish framework.
242
-
243
- #### Example Instance
244
-
245
- <!-- info: Provide a JSON formatted example of a typical instance in the dataset. -->
246
- <!-- scope: periscope -->
247
- {'story_name': 'self-did-it',
248
- 'content': '" what is your name ? " asked the girl from underground . " self is my name , " said the woman . that seemed a curious name to the girl , and she once more began to pull the fire apart . then the woman grew angry and began to scold , and built it all up again . thus they went on for a good while ; but at last , while they were in the midst of their pulling apart and building up of the fire , the woman upset the tar - barrel on the girl from underground . then the latter screamed and ran away , crying : " father , father ! self burned me ! " " nonsense , if self did it , then self must suffer for it ! " came the answer from below the hill .',
249
- 'answer': 'the woman told the girl her name was self .',
250
- 'question': "why did the girl's father think the girl burned herself ?",
251
- 'gem_id': 'GEM-FairytaleQA-test-1006',
252
- 'target': "why did the girl's father think the girl burned herself ?",
253
- 'references': ["why did the girl's father think the girl burned herself ?"],
254
- 'local_or_sum': 'local',
255
- 'attribute': 'causal relationship',
256
- 'ex_or_im': 'implicit'}
257
-
258
- #### Data Splits
259
-
260
- <!-- info: Describe and name the splits in the dataset if there are more than one. -->
261
- <!-- scope: periscope -->
262
- The data is split into a train, validation, and test split randomly. The final split sizes are as follows:
263
-
264
- | | Train | Validation | Test |
265
- | ----- | ----- | ----- | ----- |
266
- | # Books | 232 | 23 | 23 |
267
- | # QA-Pairs | 8548 | 1025 |1007 |
268
-
269
- #### Splitting Criteria
270
-
271
- <!-- info: Describe any criteria for splitting the data, if used. If there are differences between the splits (e.g., if the training annotations are machine-generated and the dev and test ones are created by humans, or if different numbers of annotators contributed to each example), describe them here. -->
272
- <!-- scope: microscope -->
273
- The books are randomly split into train/validation/test splits. We control the ratio of QA-pair numbers in train:validation:test splits close to 8:1:1
274
-
275
- ####
276
-
277
- <!-- info: What does an outlier of the dataset in terms of length/perplexity/embedding look like? -->
278
- <!-- scope: microscope -->
279
- [N/A]
280
-
281
-
282
-
283
- ## Dataset in GEM
284
-
285
- ### Rationale for Inclusion in GEM
286
-
287
- #### Why is the Dataset in GEM?
288
-
289
- <!-- info: What does this dataset contribute toward better generation evaluation and why is it part of GEM? -->
290
- <!-- scope: microscope -->
291
- The dataset distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way.
292
-
293
-
294
-
295
- #### Similar Datasets
296
-
297
- <!-- info: Do other datasets for the high level task exist? -->
298
- <!-- scope: telescope -->
299
- no
300
-
301
- #### Ability that the Dataset measures
302
-
303
- <!-- info: What aspect of model ability can be measured with this dataset? -->
304
- <!-- scope: periscope -->
305
- This dataset is suitable for developing models to automatically generate questions or QA-pairs that satisfy the need for a continuous supply of new questions, which can potentially enable large-scale development of AI-supported interactive platforms for the learning and assessment of reading comprehension skills.
306
-
307
-
308
- ### GEM-Specific Curation
309
-
310
- #### Modificatied for GEM?
311
-
312
- <!-- info: Has the GEM version of the dataset been modified in any way (data, processing, splits) from the original curated data? -->
313
- <!-- scope: telescope -->
314
- yes
315
-
316
- #### GEM Modifications
317
-
318
- <!-- info: What changes have been made to he original dataset? -->
319
- <!-- scope: periscope -->
320
- `data points removed`
321
-
322
- #### Modification Details
323
-
324
- <!-- info: For each of these changes, described them in more details and provided the intended purpose of the modification -->
325
- <!-- scope: microscope -->
326
- The original data contains two answers by different annotators in validation/test splits, we removed the 2nd answer for GEM version because it is not being used for the Question Generation task.
327
-
328
- #### Additional Splits?
329
-
330
- <!-- info: Does GEM provide additional splits to the dataset? -->
331
- <!-- scope: telescope -->
332
- no
333
-
334
-
335
- ### Getting Started with the Task
336
-
337
- #### Pointers to Resources
338
-
339
- <!-- info: Getting started with in-depth research on the task. Add relevant pointers to resources that researchers can consult when they want to get started digging deeper into the task. -->
340
- <!-- scope: microscope -->
341
- [N/A]
342
-
343
-
344
-
345
- ## Previous Results
346
-
347
- ### Previous Results
348
-
349
- #### Measured Model Abilities
350
-
351
- <!-- info: What aspect of model ability can be measured with this dataset? -->
352
- <!-- scope: telescope -->
353
- We are able to measure model's capabilities of generating various types of questions that corresponds to different narrative elements with the FairytaleQA dataset on the Question Generation Task
354
-
355
- #### Metrics
356
-
357
- <!-- info: What metrics are typically used for this task? -->
358
- <!-- scope: periscope -->
359
- `ROUGE`
360
-
361
- #### Proposed Evaluation
362
-
363
- <!-- info: List and describe the purpose of the metrics and evaluation methodology (including human evaluation) that the dataset creators used when introducing this task. -->
364
- <!-- scope: microscope -->
365
- The task was to generate questions corresponding to the given answers and the story context. Success on this task is typically measured by achieving a high [ROUGE](https://huggingface.co/metrics/rouge) score to the reference ground-truth questions.
366
-
367
- #### Previous results available?
368
-
369
- <!-- info: Are previous results available? -->
370
- <!-- scope: telescope -->
371
- yes
372
-
373
- #### Relevant Previous Results
374
-
375
- <!-- info: What are the most relevant previous results for this task/dataset? -->
376
- <!-- scope: microscope -->
377
- A [BART-based model](https://huggingface.co/facebook/bart-large) currently achieves a [ROUGE-L of 0.527/0.527](https://github.com/uci-soe/FairytaleQAData) on valid/test splits, which is reported as the baseline experiment for the dataset [paper](https://arxiv.org/pdf/2203.13947.pdf).
378
-
379
-
380
-
381
- ## Dataset Curation
382
-
383
- ### Original Curation
384
-
385
- #### Original Curation Rationale
386
-
387
- <!-- info: Original curation rationale -->
388
- <!-- scope: telescope -->
389
- FairytaleQA was built to focus on comprehension of narratives in the education domain, targeting students from kindergarten to eighth grade. We focus on narrative comprehension for 1. it is a high-level comprehension skill strongly predictive of reading achievement and plays a central role in daily life as people frequently encounter narratives in different forms, 2. narrative stories have a clear structure of specific elements and relations among these elements, and there are existing validated narrative comprehension frameworks around this structure, which provides a basis for developing the annotation schema for our dataset.
390
-
391
- #### Communicative Goal
392
-
393
- <!-- info: What was the communicative goal? -->
394
- <!-- scope: periscope -->
395
- The purpose of this dataset is to help develop systems to facilitate assessment and training of narrative comprehension skills for children in education domain.
396
-
397
- #### Sourced from Different Sources
398
-
399
- <!-- info: Is the dataset aggregated from different data sources? -->
400
- <!-- scope: telescope -->
401
- no
402
-
403
-
404
- ### Language Data
405
-
406
- #### How was Language Data Obtained?
407
-
408
- <!-- info: How was the language data obtained? -->
409
- <!-- scope: telescope -->
410
- `Found`
411
-
412
- #### Where was it found?
413
-
414
- <!-- info: If found, where from? -->
415
- <!-- scope: telescope -->
416
- `Single website`
417
-
418
- #### Language Producers
419
-
420
- <!-- info: What further information do we have on the language producers? -->
421
- <!-- scope: microscope -->
422
- The fairytale story texts are from the [Project Gutenberg](https://www.gutenberg.org/) website
423
-
424
- #### Topics Covered
425
-
426
- <!-- info: Does the language in the dataset focus on specific topics? How would you describe them? -->
427
- <!-- scope: periscope -->
428
- We gathered the text from the Project Gutenberg website, using “fairytale” as the search term.
429
-
430
- #### Data Validation
431
-
432
- <!-- info: Was the text validated by a different worker or a data curator? -->
433
- <!-- scope: telescope -->
434
- validated by data curator
435
-
436
- #### Data Preprocessing
437
-
438
- <!-- info: How was the text data pre-processed? (Enter N/A if the text was not pre-processed) -->
439
- <!-- scope: microscope -->
440
- Due to a large number of fairytales found, we used the most popular stories based on the number of downloads since these stories are presumably of higher quality. To ensure the readability of the text, we made a small number of minor revisions to some obviously outdated vocabulary (e.g., changing “ere” to “before”) and the unconventional use of punctuation (e.g., changing consecutive semi-colons to periods).
441
-
442
- These texts were broken down into small sections based on their semantic content by our annotators. The annotators were instructed to split the story into sections of 100-300 words that also contain meaningful content and are separated at natural story breaks. An initial annotator would split the story, and this would be reviewed by a cross-checking annotator. Most of the resulting sections were one natural paragraph of the original text.
443
-
444
- #### Was Data Filtered?
445
-
446
- <!-- info: Were text instances selected or filtered? -->
447
- <!-- scope: telescope -->
448
- manually
449
-
450
- #### Filter Criteria
451
-
452
- <!-- info: What were the selection criteria? -->
453
- <!-- scope: microscope -->
454
- For each story, we evaluated the reading difficulty level using the [textstat](https://pypi.org/project/textstat/) Python package, primarily based on sentence length, word length, and commonness of words. We excluded stories that are at 10th grade level or above.
455
-
456
-
457
- ### Structured Annotations
458
-
459
- #### Additional Annotations?
460
-
461
- <!-- quick -->
462
- <!-- info: Does the dataset have additional annotations for each instance? -->
463
- <!-- scope: telescope -->
464
- expert created
465
-
466
- #### Number of Raters
467
-
468
- <!-- info: What is the number of raters -->
469
- <!-- scope: telescope -->
470
- 2<n<10
471
-
472
- #### Rater Qualifications
473
-
474
- <!-- info: Describe the qualifications required of an annotator. -->
475
- <!-- scope: periscope -->
476
- All of these annotators have a B.A. degree in education, psychology, or cognitive science and have substantial experience in teaching and reading assessment. These annotators were supervised by three experts in literacy education.
477
-
478
- #### Raters per Training Example
479
-
480
- <!-- info: How many annotators saw each training example? -->
481
- <!-- scope: periscope -->
482
- 2
483
-
484
- #### Raters per Test Example
485
-
486
- <!-- info: How many annotators saw each test example? -->
487
- <!-- scope: periscope -->
488
- 3
489
-
490
- #### Annotation Service?
491
-
492
- <!-- info: Was an annotation service used? -->
493
- <!-- scope: telescope -->
494
- no
495
-
496
- #### Annotation Values
497
-
498
- <!-- info: Purpose and values for each annotation -->
499
- <!-- scope: microscope -->
500
- The dataset annotation distinguishes fine-grained reading skills, such as the understanding of varying narrative elements, and contains high-quality QA-pairs generated by education experts with sufficient training and education domain knowledge to create valid QA-pairs in a consistent way.
501
-
502
- #### Any Quality Control?
503
-
504
- <!-- info: Quality control measures? -->
505
- <!-- scope: telescope -->
506
- validated by data curators
507
-
508
- #### Quality Control Details
509
-
510
- <!-- info: Describe the quality control measures that were taken. -->
511
- <!-- scope: microscope -->
512
- The annotators were instructed to imagine that they were creating questions to test elementary or middle school students in the process of reading a complete story. We required the annotators to generate only natural, open-ended questions, avoiding “yes-” or “no-” questions. We also instructed them to provide a diverse set of questions about 7 different narrative elements, and with both implicit and explicit questions.
513
-
514
- We asked the annotators to also generate answers for each of their questions. We asked them to provide the shortest possible answers but did not restrict them to complete sentences or short phrases. We also asked the annotators to label which section(s) the question and answer was from.
515
-
516
- All annotators received a two-week training in which each of them was familiarized with the coding template and conducted practice coding on the same five stories. The practice QA pairs were then reviewed by the other annotators and the three experts, and discrepancies among annotators were discussed. During the annotation process, the team met once every week to review and discuss each member’s work. All QA pairs were cross-checked by two annotators, and 10% of the QA pairs were additionally checked by the expert supervisor.
517
-
518
- For the 46 stories used as the evaluation set, we annotate a second reference answer by asking an annotator to independently read the story and answer the questions generated by others.
519
-
520
-
521
- ### Consent
522
-
523
- #### Any Consent Policy?
524
-
525
- <!-- info: Was there a consent policy involved when gathering the data? -->
526
- <!-- scope: telescope -->
527
- yes
528
-
529
- #### Consent Policy Details
530
-
531
- <!-- info: What was the consent policy? -->
532
- <!-- scope: microscope -->
533
- During the annotation process, the team met once every week to review and discuss each member’s work. All QA pairs were cross-checked by two annotators, and 10% of the QA pairs were additionally checked by the expert supervisor.
534
-
535
- #### Other Consented Downstream Use
536
-
537
- <!-- info: What other downstream uses of the data did the original data creators and the data curators consent to? -->
538
- <!-- scope: microscope -->
539
- Aside from Question Generation task, the data creators and curators used this data for Question Answering, and QA-Pair Generation tasks, and to identify social stereotypes represented in story narratives.
540
-
541
-
542
- ### Private Identifying Information (PII)
543
-
544
- #### Contains PII?
545
-
546
- <!-- quick -->
547
- <!-- info: Does the source language data likely contain Personal Identifying Information about the data creators or subjects? -->
548
- <!-- scope: telescope -->
549
- no PII
550
-
551
- #### Justification for no PII
552
-
553
- <!-- info: Provide a justification for selecting `no PII` above. -->
554
- <!-- scope: periscope -->
555
- The story content is from publically available knowledge website and the annotated QA-pairs are about general knowledge to the story content without references to the author or to any persons
556
-
557
-
558
- ### Maintenance
559
-
560
- #### Any Maintenance Plan?
561
-
562
- <!-- info: Does the original dataset have a maintenance plan? -->
563
- <!-- scope: telescope -->
564
- yes
565
-
566
- #### Maintenance Plan Details
567
-
568
- <!-- info: Describe the original dataset's maintenance plan. -->
569
- <!-- scope: microscope -->
570
- We plan to host various splits for the FairytaleQA dataset to better serve various types of research interests. We have the original data for 2 different split approaches including train/validation/test splits and split by fairytale origins. We are also plan to host the dataset on multiple platforms for various tasks.
571
-
572
- #### Maintainer Contact Information
573
-
574
- <!-- info: Provide contact information of a person responsible for the dataset maintenance -->
575
- <!-- scope: periscope -->
576
- Daniel Ritchie
577
-
578
- #### Any Contestation Mechanism?
579
-
580
- <!-- info: Does the maintenance plan include a contestation mechanism allowing individuals to request removal fo content? -->
581
- <!-- scope: periscope -->
582
- no mechanism
583
-
584
-
585
-
586
- ## Broader Social Context
587
-
588
- ### Previous Work on the Social Impact of the Dataset
589
-
590
- #### Usage of Models based on the Data
591
-
592
- <!-- info: Are you aware of cases where models trained on the task featured in this dataset ore related tasks have been used in automated systems? -->
593
- <!-- scope: telescope -->
594
- yes - models trained on this dataset
595
-
596
- #### Social Impact Observations
597
-
598
- <!-- info: Did any of these previous uses result in observations about the social impact of the systems? In particular, has there been work outlining the risks and limitations of the system? Provide links and descriptions here. -->
599
- <!-- scope: microscope -->
600
- [N/A]
601
-
602
- #### Changes as Consequence of Social Impact
603
-
604
- <!-- info: Have any changes been made to the dataset as a result of these observations? -->
605
- <!-- scope: periscope -->
606
- [N/A]
607
-
608
-
609
- ### Impact on Under-Served Communities
610
-
611
- #### Addresses needs of underserved Communities?
612
-
613
- <!-- info: Does this dataset address the needs of communities that are traditionally underserved in language technology, and particularly language generation technology? Communities may be underserved for exemple because their language, language variety, or social or geographical context is underepresented in NLP and NLG resources (datasets and models). -->
614
- <!-- scope: telescope -->
615
- yes
616
-
617
- #### Details on how Dataset Addresses the Needs
618
-
619
- <!-- info: Describe how this dataset addresses the needs of underserved communities. -->
620
- <!-- scope: microscope -->
621
- From the educational perspective, given that reading comprehension is a multicomponent skill, it is ideal for comprehension questions to be able to identify students’ performance in specific sub-skills, thus allowing teachers to provide tailored guidance.
622
-
623
-
624
- ### Discussion of Biases
625
-
626
- #### Any Documented Social Biases?
627
-
628
- <!-- info: Are there documented social biases in the dataset? Biases in this context are variations in the ways members of different social categories are represented that can have harmful downstream consequences for members of the more disadvantaged group. -->
629
- <!-- scope: telescope -->
630
- unsure
631
-
632
- #### Are the Language Producers Representative of the Language?
633
-
634
- <!-- info: Does the distribution of language producers in the dataset accurately represent the full distribution of speakers of the language world-wide? If not, how does it differ? -->
635
- <!-- scope: periscope -->
636
- [N/A]
637
-
638
-
639
-
640
- ## Considerations for Using the Data
641
-
642
- ### PII Risks and Liability
643
-
644
- #### Potential PII Risk
645
-
646
- <!-- info: Considering your answers to the PII part of the Data Curation Section, describe any potential privacy to the data subjects and creators risks when using the dataset. -->
647
- <!-- scope: microscope -->
648
- [N/A]
649
-
650
-
651
- ### Licenses
652
-
653
- #### Copyright Restrictions on the Dataset
654
-
655
- <!-- info: Based on your answers in the Intended Use part of the Data Overview Section, which of the following best describe the copyright and licensing status of the dataset? -->
656
- <!-- scope: periscope -->
657
- `research use only`
658
-
659
- #### Copyright Restrictions on the Language Data
660
-
661
- <!-- info: Based on your answers in the Language part of the Data Curation Section, which of the following best describe the copyright and licensing status of the underlying language data? -->
662
- <!-- scope: periscope -->
663
- `public domain`
664
-
665
-
666
- ### Known Technical Limitations
667
-
668
- #### Technical Limitations
669
-
670
- <!-- info: Describe any known technical limitations, such as spurrious correlations, train/test overlap, annotation biases, or mis-annotations, and cite the works that first identified these limitations when possible. -->
671
- <!-- scope: microscope -->
672
- We noticed that human results are obtained via cross-estimation between the two annotated answers, thus are underestimated. One possibility for future work is to conduct a large-scale human annotation to collect more answers per question and then leverage the massively annotated answers to better establish a human performance evaluation.
673
-
674
- #### Unsuited Applications
675
-
676
- <!-- info: When using a model trained on this dataset in a setting where users or the public may interact with its predictions, what are some pitfalls to look out for? In particular, describe some applications of the general task featured in this dataset that its curation or properties make it less suitable for. -->
677
- <!-- scope: microscope -->
678
- The QA-pairs annotated by education experts are targeting the audience of children from kindergarten to eighth grade, so the difficulty of QA-pairs are not suitable to compare with other existing dataset that are sourced from knowledge graphs or knowledge bases like Wikipedia.
679
-
680
- #### Discouraged Use Cases
681
-
682
- <!-- info: What are some discouraged use cases of a model trained to maximize the proposed metrics on this dataset? In particular, think about settings where decisions made by a model that performs reasonably well on the metric my still have strong negative consequences for user or members of the public. -->
683
- <!-- scope: microscope -->
684
- [N/A]
685
-
686
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The FairytaleQA dataset focusing on narrative comprehension of kindergarten to eighth-grade students. Generated by educational experts based on an evidence-based theoretical framework, FairytaleQA consists of 10,580 explicit and implicit questions derived from 278 children-friendly stories, covering seven types of narrative elements or relations. This is for the Question Generation Task of FairytaleQA.\n", "citation": "@inproceedings{xu2022fairytaleqa,\n author={Xu, Ying and Wang, Dakuo and Yu, Mo and Ritchie, Daniel and Yao, Bingsheng and Wu, Tongshuang and Zhang, Zheng and Li, Toby Jia-Jun and Bradford, Nora and Sun, Branda and Hoang, Tran Bao and Sang, Yisi and Hou, Yufang and Ma, Xiaojuan and Yang, Diyi and Peng, Nanyun and Yu, Zhou and Warschauer, Mark},\n title = {Fantastic Questions and Where to Find Them: Fairytale{QA} -- An Authentic Dataset for Narrative Comprehension},\n publisher = {Association for Computational Linguistics},\n year = {2022}\n}\n", "homepage": "https://github.com/uci-soe/FairytaleQAData", "license": "", "features": {"story_name": {"dtype": "string", "id": null, "_type": "Value"}, "content": {"dtype": "string", "id": null, "_type": "Value"}, "answer": {"dtype": "string", "id": null, "_type": "Value"}, "gem_id": {"dtype": "string", "id": null, "_type": "Value"}, "target": {"dtype": "string", "id": null, "_type": "Value"}, "references": [{"dtype": "string", "id": null, "_type": "Value"}], "local_or_sum": {"dtype": "string", "id": null, "_type": "Value"}, "attribute": {"dtype": "string", "id": null, "_type": "Value"}, "ex_or_im": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "fairytale_qa", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10644996, "num_examples": 8548, "dataset_name": "fairytale_qa"}, "validation": {"name": "validation", "num_bytes": 1266906, "num_examples": 1025, "dataset_name": "fairytale_qa"}, "test": {"name": "test", "num_bytes": 1230405, "num_examples": 1007, "dataset_name": "fairytale_qa"}}, "download_checksums": {"train.json": {"num_bytes": 11150678, "checksum": "41c17f4b51f52b215af05fdaee66f7f31de24455083c395837565b91f35b50c1"}, "valid.json": {"num_bytes": 1259984, "checksum": "d14f070e6b11334d054efeb795574833450a41a8d6403c201e1a8cafc2733fd4"}, "test.json": {"num_bytes": 1231706, "checksum": "8e5fcacea2da0cce61a151074adaf45e6080fd6670be84c44a66eb02388b9e08"}}, "download_size": 13642368, "post_processing_size": null, "dataset_size": 13142307, "size_in_bytes": 26784675}}
 
 
test.json → default/fairytale_qa-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e5fcacea2da0cce61a151074adaf45e6080fd6670be84c44a66eb02388b9e08
3
- size 1231706
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21c035193c5fc5ce27f133d48f73ab260ffa500a393fb986645e96d918a0ab7e
3
+ size 296501
valid.json → default/fairytale_qa-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d14f070e6b11334d054efeb795574833450a41a8d6403c201e1a8cafc2733fd4
3
- size 1259984
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9491cf271fc3b951f8af9e61349627848178d7ee8b975a2a9b5a3e487b5d780e
3
+ size 2413069
train.json → default/fairytale_qa-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:41c17f4b51f52b215af05fdaee66f7f31de24455083c395837565b91f35b50c1
3
- size 11150678
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45025d3dbe2acd55b156e181cd535858ef1e03c1651341a82d771ccaa99c5d26
3
+ size 318361