Commit
·
34d0edd
1
Parent(s):
051f49f
Update LoadingScript
Browse files- LoadingScriptPractice.py +2 -2
LoadingScriptPractice.py
CHANGED
@@ -115,13 +115,13 @@ class LoadingScriptPractice(datasets.GeneratorBasedBuilder):
|
|
115 |
)
|
116 |
|
117 |
data_paths = dict()
|
118 |
-
for path in
|
119 |
dname = dirname(path)
|
120 |
folder = basename(Path(dname))
|
121 |
data_paths[folder] = path
|
122 |
|
123 |
metadata_paths = dict()
|
124 |
-
for path in
|
125 |
dname = dirname(path)
|
126 |
folder = basename(Path(dname))
|
127 |
metadata_paths[folder] = path
|
|
|
115 |
)
|
116 |
|
117 |
data_paths = dict()
|
118 |
+
for path in data_urls["train"]:
|
119 |
dname = dirname(path)
|
120 |
folder = basename(Path(dname))
|
121 |
data_paths[folder] = path
|
122 |
|
123 |
metadata_paths = dict()
|
124 |
+
for path in metadata_urls["train"]:
|
125 |
dname = dirname(path)
|
126 |
folder = basename(Path(dname))
|
127 |
metadata_paths[folder] = path
|