sagot commited on
Commit
66cd1cb
·
1 Parent(s): 3176476

Update lefff_morpho.py

Browse files
Files changed (1) hide show
  1. lefff_morpho.py +1 -1
lefff_morpho.py CHANGED
@@ -113,7 +113,7 @@ class LefffMorpho(datasets.GeneratorBasedBuilder):
113
  # 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.
114
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
115
  urls = _URLS["all"]
116
- data_dir = dl_manager.download_and_extract(urls)
117
  return [datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': downloaded_files['all']})]
118
 
119
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
 
113
  # 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.
114
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
115
  urls = _URLS["all"]
116
+ downloaded_files = dl_manager.download_and_extract(_URLS)
117
  return [datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': downloaded_files['all']})]
118
 
119
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`