Datasets:
Update dolma.py
#39
by
kshinoda
- opened
dolma.py
CHANGED
@@ -112,7 +112,7 @@ class Dolma(datasets.GeneratorBasedBuilder):
|
|
112 |
subset_urls = f.read().splitlines()
|
113 |
|
114 |
if _DATA_DIR is not None:
|
115 |
-
subset_files = [os.path.join(_DATA_DIR,
|
116 |
else:
|
117 |
subset_files = dl_manager.download(subset_urls)
|
118 |
|
|
|
112 |
subset_urls = f.read().splitlines()
|
113 |
|
114 |
if _DATA_DIR is not None:
|
115 |
+
subset_files = [os.path.join(_DATA_DIR, os.path.basename(url)) for url in subset_urls]
|
116 |
else:
|
117 |
subset_files = dl_manager.download(subset_urls)
|
118 |
|