Datasets:
Tasks:
Other
Modalities:
Text
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
question-generation
License:
WorkInTheDark
commited on
Commit
•
c3dbf09
1
Parent(s):
a6954aa
remove
Browse files- dataset_infos.json +0 -1
- fairytaleqa.py +4 -3
- test.json +0 -3
- test.jsonl +0 -3
- train.json +0 -3
- train.jsonl +0 -3
- valid.json +0 -3
- valid.jsonl +0 -3
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": 10644952, "num_examples": 8548, "dataset_name": "fairytale_qa"}, "validation": {"name": "validation", "num_bytes": 1266866, "num_examples": 1025, "dataset_name": "fairytale_qa"}, "test": {"name": "test", "num_bytes": 1230365, "num_examples": 1007, "dataset_name": "fairytale_qa"}}, "download_checksums": {"train.json": {"num_bytes": 11449860, "checksum": "a25ac4585d121cb7262e13265eca16ca327042f1fe92a798f427eace565eb442"}, "valid.json": {"num_bytes": 1295861, "checksum": "51d4968cd94bcf947eeb31d75d8cba23da324c611805276a473080d0e971f289"}, "test.json": {"num_bytes": 1266953, "checksum": "0a444d00df84950a665bac327ee8f47bc5aad01b2a59f9ce0e792524858294af"}}, "download_size": 14012674, "post_processing_size": null, "dataset_size": 13142183, "size_in_bytes": 27154857}}
|
|
|
|
fairytaleqa.py
CHANGED
@@ -79,7 +79,7 @@ class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
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 = [
|
@@ -155,9 +155,10 @@ class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
155 |
|
156 |
with open(filepath, encoding="utf-8") as f:
|
157 |
|
158 |
-
json_data = json.load(f)
|
159 |
|
160 |
-
for id_,
|
|
|
161 |
yield id_, {
|
162 |
"story_name": data['story_name'],
|
163 |
"content": data['content'],
|
|
|
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 = [
|
|
|
155 |
|
156 |
with open(filepath, encoding="utf-8") as f:
|
157 |
|
158 |
+
# json_data = json.load(f)
|
159 |
|
160 |
+
for id_, row in enumerate(f):
|
161 |
+
data = json.loads(row)
|
162 |
yield id_, {
|
163 |
"story_name": data['story_name'],
|
164 |
"content": data['content'],
|
test.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8e5fcacea2da0cce61a151074adaf45e6080fd6670be84c44a66eb02388b9e08
|
3 |
-
size 1231706
|
|
|
|
|
|
|
|
test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8e5fcacea2da0cce61a151074adaf45e6080fd6670be84c44a66eb02388b9e08
|
3 |
-
size 1231706
|
|
|
|
|
|
|
|
train.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:41c17f4b51f52b215af05fdaee66f7f31de24455083c395837565b91f35b50c1
|
3 |
-
size 11150678
|
|
|
|
|
|
|
|
train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:41c17f4b51f52b215af05fdaee66f7f31de24455083c395837565b91f35b50c1
|
3 |
-
size 11150678
|
|
|
|
|
|
|
|
valid.json
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d14f070e6b11334d054efeb795574833450a41a8d6403c201e1a8cafc2733fd4
|
3 |
-
size 1259984
|
|
|
|
|
|
|
|
valid.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d14f070e6b11334d054efeb795574833450a41a8d6403c201e1a8cafc2733fd4
|
3 |
-
size 1259984
|
|
|
|
|
|
|
|