Datasets:
Tasks:
Other
Modalities:
Text
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
question-generation
License:
WorkInTheDark
commited on
Commit
•
4040317
1
Parent(s):
19e7bf5
edit
Browse files- fairytaleqa.py +14 -4
fairytaleqa.py
CHANGED
@@ -74,10 +74,20 @@ _URLS = {
|
|
74 |
"test": "test.csv"
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
# _URLS = "https://huggingface.co/datasets/GEM/FairytaleQA/resolve/main/fairytaleqa.zip"
|
78 |
|
79 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
80 |
-
class
|
81 |
"""TODO: Short description of my dataset."""
|
82 |
|
83 |
# VERSION = datasets.Version("1.1.0")
|
@@ -95,9 +105,9 @@ class FairytaleQAConfig(datasets.GeneratorBasedBuilder):
|
|
95 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
96 |
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
# DEFAULT_CONFIG_NAME = "train" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
103 |
|
|
|
74 |
"test": "test.csv"
|
75 |
}
|
76 |
|
77 |
+
class FairytaleQAConfig(datasets.BuilderConfig):
|
78 |
+
"""BuilderConfig for SQUAD."""
|
79 |
+
|
80 |
+
def __init__(self, **kwargs):
|
81 |
+
"""BuilderConfig for SQUAD.
|
82 |
+
Args:
|
83 |
+
**kwargs: keyword arguments forwarded to super.
|
84 |
+
"""
|
85 |
+
super(FairytaleQAConfig, self).__init__(**kwargs)
|
86 |
+
|
87 |
# _URLS = "https://huggingface.co/datasets/GEM/FairytaleQA/resolve/main/fairytaleqa.zip"
|
88 |
|
89 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
90 |
+
class FairytaleQA(datasets.GeneratorBasedBuilder):
|
91 |
"""TODO: Short description of my dataset."""
|
92 |
|
93 |
# VERSION = datasets.Version("1.1.0")
|
|
|
105 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
106 |
|
107 |
|
108 |
+
BUILDER_CONFIGS = [
|
109 |
+
datasets.FairytaleQAConfig(name="plain_text", description="Plain Text")
|
110 |
+
]
|
111 |
|
112 |
# DEFAULT_CONFIG_NAME = "train" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
113 |
|