Datasets:
Upload build_dataset.py
Browse files- build_dataset.py +2 -2
build_dataset.py
CHANGED
@@ -144,7 +144,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
144 |
name=datasets.Split.TRAIN,
|
145 |
# These kwargs will be passed to _generate_examples
|
146 |
gen_kwargs={
|
147 |
-
"
|
148 |
"local_datafiles": data_dir["train"],
|
149 |
"split": "train",
|
150 |
},
|
@@ -161,7 +161,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
161 |
name=datasets.Split.TEST,
|
162 |
# These kwargs will be passed to _generate_examples
|
163 |
gen_kwargs={
|
164 |
-
"
|
165 |
"local_datafiles": data_dir["train"],
|
166 |
"split": "test"
|
167 |
},
|
|
|
144 |
name=datasets.Split.TRAIN,
|
145 |
# These kwargs will be passed to _generate_examples
|
146 |
gen_kwargs={
|
147 |
+
"filenames": file_list["train"],
|
148 |
"local_datafiles": data_dir["train"],
|
149 |
"split": "train",
|
150 |
},
|
|
|
161 |
name=datasets.Split.TEST,
|
162 |
# These kwargs will be passed to _generate_examples
|
163 |
gen_kwargs={
|
164 |
+
"filenames": file_list["train"],
|
165 |
"local_datafiles": data_dir["train"],
|
166 |
"split": "test"
|
167 |
},
|