Datasets:
Tasks:
Other
Modalities:
Text
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
question-generation
License:
Commit
·
280d64e
1
Parent(s):
d78a025
edit
Browse files- fairytaleqa.py +2 -26
- test.json +3 -0
- train.json +3 -0
- valid.json +3 -0
fairytaleqa.py
CHANGED
|
@@ -53,37 +53,12 @@ _LICENSE = ""
|
|
| 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 |
-
# _URL = "/content/datasets/FairytaleQA/"
|
| 57 |
-
# _URL = "https://huggingface.co/datasets/GEM/FairytaleQA/raw/main/"
|
| 58 |
-
# # _URL = "https://github.com/uci-soe/FairytaleQAData/raw/main/data-hub/"
|
| 59 |
-
# _URLS = {
|
| 60 |
-
# "train": _URL + "train.csv",
|
| 61 |
-
# "validation": _URL + "valid.csv",
|
| 62 |
-
# "test": _URL + "test.csv"
|
| 63 |
-
# }
|
| 64 |
-
|
| 65 |
-
# _URLS = {
|
| 66 |
-
# "train": "https://github.com/uci-soe/FairytaleQAData/raw/main/data-hub/train.csv",
|
| 67 |
-
# "validation": "https://github.com/uci-soe/FairytaleQAData/raw/main/data-hub/valid.csv",
|
| 68 |
-
# "test": "https://github.com/uci-soe/FairytaleQAData/raw/main/data-hub/test.csv"
|
| 69 |
-
# }
|
| 70 |
-
|
| 71 |
_URLS = {
|
| 72 |
"train": "train.json",
|
| 73 |
"validation": "valid.json",
|
| 74 |
"test": "test.json"
|
| 75 |
}
|
| 76 |
|
| 77 |
-
# class FairytaleQAConfig(datasets.BuilderConfig):
|
| 78 |
-
|
| 79 |
-
# def __init__(self, **kwargs):
|
| 80 |
-
# """
|
| 81 |
-
# Args:
|
| 82 |
-
# **kwargs: keyword arguments forwarded to super.
|
| 83 |
-
# """
|
| 84 |
-
# super(FairytaleQAConfig, self).__init__(**kwargs)
|
| 85 |
-
|
| 86 |
-
# _URLS = "https://huggingface.co/datasets/GEM/FairytaleQA/resolve/main/fairytaleqa.zip"
|
| 87 |
|
| 88 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 89 |
class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
@@ -104,7 +79,8 @@ class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
| 104 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
| 105 |
|
| 106 |
VERSION = datasets.Version("1.0.0")
|
| 107 |
-
|
|
|
|
| 108 |
|
| 109 |
# BUILDER_CONFIGS = [
|
| 110 |
# FairytaleQAConfig(
|
|
|
|
| 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):
|
|
|
|
| 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(
|
test.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a444d00df84950a665bac327ee8f47bc5aad01b2a59f9ce0e792524858294af
|
| 3 |
+
size 1266953
|
train.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a25ac4585d121cb7262e13265eca16ca327042f1fe92a798f427eace565eb442
|
| 3 |
+
size 11449860
|
valid.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51d4968cd94bcf947eeb31d75d8cba23da324c611805276a473080d0e971f289
|
| 3 |
+
size 1295861
|