Datasets:

Languages:
English
Size:
n>1T
ArXiv:
License:
Files changed (1) hide show
  1. dolma.py +1 -1
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, url.replace(_BASE_URL, "").lstrip("/")) for url in subset_urls]
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