ProgramComputer
commited on
Commit
•
e25ecff
1
Parent(s):
ad951e6
Update test.py
Browse files
test.py
CHANGED
@@ -306,7 +306,7 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
306 |
# copyfileobj(tmp, out)
|
307 |
# #tmp_path.unlink()
|
308 |
# raise Exception("HELLO")
|
309 |
-
mapped_paths =
|
310 |
dict( (
|
311 |
placeholder_key,
|
312 |
dict(
|
@@ -314,9 +314,9 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
314 |
for target in targets
|
315 |
),
|
316 |
)
|
317 |
-
for placeholder_key in ("test",
|
318 |
)
|
319 |
-
)
|
320 |
|
321 |
#raise Exception(mapped_paths)
|
322 |
|
@@ -348,13 +348,13 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
348 |
"meta_paths": metadata,
|
349 |
},
|
350 |
),
|
351 |
-
datasets.SplitGenerator(
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
),
|
358 |
]
|
359 |
|
360 |
def _generate_examples(self, paths, meta_paths):
|
|
|
306 |
# copyfileobj(tmp, out)
|
307 |
# #tmp_path.unlink()
|
308 |
# raise Exception("HELLO")
|
309 |
+
mapped_paths = dl_manager.download(
|
310 |
dict( (
|
311 |
placeholder_key,
|
312 |
dict(
|
|
|
314 |
for target in targets
|
315 |
),
|
316 |
)
|
317 |
+
for placeholder_key in ("test",)
|
318 |
)
|
319 |
+
)
|
320 |
|
321 |
#raise Exception(mapped_paths)
|
322 |
|
|
|
348 |
"meta_paths": metadata,
|
349 |
},
|
350 |
),
|
351 |
+
# datasets.SplitGenerator(
|
352 |
+
# name="dev",
|
353 |
+
# gen_kwargs={
|
354 |
+
# "paths": mapped_paths["dev"],
|
355 |
+
# "meta_paths": metadata,
|
356 |
+
# },
|
357 |
+
# ),
|
358 |
]
|
359 |
|
360 |
def _generate_examples(self, paths, meta_paths):
|