ProgramComputer
commited on
Commit
•
2c1bad9
1
Parent(s):
2800183
Update test.py
Browse files
test.py
CHANGED
@@ -296,27 +296,27 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
296 |
for placeholder_key in ("test")
|
297 |
))
|
298 |
|
299 |
-
|
300 |
|
301 |
-
tmp_paths = dl_manager.extract_and_download(
|
302 |
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
with open(tmp_paths[0], "wb") as out:
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
mapped_paths = mapped_paths.append(tmp_paths[0])
|
319 |
-
print(mapped_paths)
|
320 |
|
321 |
return [
|
322 |
datasets.SplitGenerator(
|
|
|
296 |
for placeholder_key in ("test")
|
297 |
))
|
298 |
|
299 |
+
print(mapped_paths)
|
300 |
|
301 |
+
# tmp_paths = dl_manager.extract_and_download(
|
302 |
|
303 |
+
# dict(
|
304 |
+
# (
|
305 |
+
# placeholder_key,
|
306 |
+
# dict(
|
307 |
+
# (target, _URLS[target][placeholder_key])
|
308 |
+
# for target in targets
|
309 |
+
# ),
|
310 |
+
# )
|
311 |
+
# for placeholder_key in ("placeholder")
|
312 |
+
# ))
|
313 |
+
# with open(tmp_paths[0], "wb") as out:
|
314 |
+
# for tmp_path in tmp_paths[1:]:
|
315 |
+
# with open(tmp_path, "rb") as tmp:
|
316 |
+
# copyfileobj(tmp, out)
|
317 |
+
# tmp_path.unlink()
|
318 |
+
# mapped_paths = mapped_paths.append(tmp_paths[0])
|
319 |
+
# print(mapped_paths)
|
320 |
|
321 |
return [
|
322 |
datasets.SplitGenerator(
|