aadelucia commited on
Commit
0183b48
1 Parent(s): 5e4b57c
Files changed (1) hide show
  1. bernice-pretrain-data.py +1 -4
bernice-pretrain-data.py CHANGED
@@ -114,10 +114,7 @@ class BernicePretrainData(datasets.GeneratorBasedBuilder):
114
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
115
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
116
  data_url = f"{_BASE_DATA_URL}/{self.config.name}"
117
- print(f"{data_url=}")
118
- print(f"{os.listdir('.')}")
119
- urls_to_download = [f"{data_url}/{f}" for f in os.listdir(data_url)]
120
- downloaded_files = dl_manager.download_and_extract(urls_to_download)
121
  return [
122
  datasets.SplitGenerator(
123
  name=datasets.Split.TRAIN,
 
114
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
115
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
116
  data_url = f"{_BASE_DATA_URL}/{self.config.name}"
117
+ downloaded_files = dl_manager.download_and_extract(data_url)
 
 
 
118
  return [
119
  datasets.SplitGenerator(
120
  name=datasets.Split.TRAIN,