Datasets:
update
Browse files- SuperLim.py +6 -5
SuperLim.py
CHANGED
@@ -211,15 +211,16 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
211 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
212 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
213 |
#urls = _URLS[self.config.name]
|
214 |
-
|
215 |
-
|
|
|
216 |
|
217 |
return [
|
218 |
datasets.SplitGenerator(
|
219 |
name=datasets.Split.TRAIN,
|
220 |
# These kwargs will be passed to _generate_examples
|
221 |
gen_kwargs={
|
222 |
-
"filepath":
|
223 |
"split": "train",
|
224 |
},
|
225 |
),
|
@@ -227,7 +228,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
227 |
name=datasets.Split.TEST,
|
228 |
# These kwargs will be passed to _generate_examples
|
229 |
gen_kwargs={
|
230 |
-
"filepath":
|
231 |
"split": "test"
|
232 |
},
|
233 |
),
|
@@ -235,7 +236,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
235 |
name=datasets.Split.VALIDATION,
|
236 |
# These kwargs will be passed to _generate_examples
|
237 |
gen_kwargs={
|
238 |
-
"filepath":
|
239 |
"split": "dev",
|
240 |
},
|
241 |
),
|
|
|
211 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
212 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
213 |
#urls = _URLS[self.config.name]
|
214 |
+
data_dir_test = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],"test.csv"))
|
215 |
+
data_dir_train = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],"train.csv"))
|
216 |
+
data_dir_dev = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],"dev.csv"))
|
217 |
|
218 |
return [
|
219 |
datasets.SplitGenerator(
|
220 |
name=datasets.Split.TRAIN,
|
221 |
# These kwargs will be passed to _generate_examples
|
222 |
gen_kwargs={
|
223 |
+
"filepath": data_dir_train,
|
224 |
"split": "train",
|
225 |
},
|
226 |
),
|
|
|
228 |
name=datasets.Split.TEST,
|
229 |
# These kwargs will be passed to _generate_examples
|
230 |
gen_kwargs={
|
231 |
+
"filepath": data_dir_test,
|
232 |
"split": "test"
|
233 |
},
|
234 |
),
|
|
|
236 |
name=datasets.Split.VALIDATION,
|
237 |
# These kwargs will be passed to _generate_examples
|
238 |
gen_kwargs={
|
239 |
+
"filepath": data_dir_dev,
|
240 |
"split": "dev",
|
241 |
},
|
242 |
),
|