Gaëtan Caillaut commited on
Commit
9acb001
·
1 Parent(s): 579e126

use DownloadManager

Browse files
Files changed (1) hide show
  1. frwiki_el.py +2 -2
frwiki_el.py CHANGED
@@ -180,13 +180,13 @@ class FrwikiElDataset(datasets.GeneratorBasedBuilder):
180
  # 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.
181
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
182
  filepath = _URLs[self.config.name]
183
- # data_dir = dl_manager.download_and_extract(my_urls)
184
  return [
185
  datasets.SplitGenerator(
186
  name=datasets.Split.TRAIN,
187
  # These kwargs will be passed to _generate_examples
188
  gen_kwargs={
189
- "path": filepath,
190
  }
191
  )
192
  ]
 
180
  # 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.
181
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
182
  filepath = _URLs[self.config.name]
183
+ path = dl_manager.download(filepath)
184
  return [
185
  datasets.SplitGenerator(
186
  name=datasets.Split.TRAIN,
187
  # These kwargs will be passed to _generate_examples
188
  gen_kwargs={
189
+ "path": path,
190
  }
191
  )
192
  ]