Commit
•
5cef1d2
1
Parent(s):
f9abc3a
fix download
Browse files
ipquiz.py
CHANGED
@@ -83,7 +83,7 @@ class IPQuizDataset(datasets.GeneratorBasedBuilder):
|
|
83 |
{
|
84 |
"language": datasets.Value("string"),
|
85 |
"problem": datasets.Value("string"),
|
86 |
-
"candidates": datasets.
|
87 |
{
|
88 |
"texts": datasets.Value("string"),
|
89 |
"options": datasets.Value("string"),
|
@@ -120,11 +120,11 @@ class IPQuizDataset(datasets.GeneratorBasedBuilder):
|
|
120 |
downloaded_files = dl_manager.download(_URLS)
|
121 |
return [
|
122 |
datasets.SplitGenerator(
|
123 |
-
name=
|
124 |
# These kwargs will be passed to _generate_examples
|
125 |
gen_kwargs={
|
126 |
"filepath": downloaded_files[self.config.name],
|
127 |
-
"split":
|
128 |
},
|
129 |
),
|
130 |
]
|
|
|
83 |
{
|
84 |
"language": datasets.Value("string"),
|
85 |
"problem": datasets.Value("string"),
|
86 |
+
"candidates": datasets.Sequence(
|
87 |
{
|
88 |
"texts": datasets.Value("string"),
|
89 |
"options": datasets.Value("string"),
|
|
|
120 |
downloaded_files = dl_manager.download(_URLS)
|
121 |
return [
|
122 |
datasets.SplitGenerator(
|
123 |
+
name=datasets.Split.TRAIN,
|
124 |
# These kwargs will be passed to _generate_examples
|
125 |
gen_kwargs={
|
126 |
"filepath": downloaded_files[self.config.name],
|
127 |
+
"split": 'train'
|
128 |
},
|
129 |
),
|
130 |
]
|