Markus28 commited on
Commit
a3c2ffa
1 Parent(s): 873f3a2

fix extraction target

Browse files
Files changed (1) hide show
  1. spanish_passage_retrieval.py +2 -2
spanish_passage_retrieval.py CHANGED
@@ -80,8 +80,8 @@ class PRES(datasets.GeneratorBasedBuilder):
80
 
81
  if not self._data:
82
  with tempfile.TemporaryDirectory() as tmpdir:
83
- extracted_path = os.path.join(tmpdir, 'PRES')
84
- patoolib.extract_archive(archive, outdir=extracted_path)
85
 
86
  with open(os.path.join(extracted_path, 'docs.json')) as f:
87
  docs = json.load(f)
 
80
 
81
  if not self._data:
82
  with tempfile.TemporaryDirectory() as tmpdir:
83
+ patoolib.extract_archive(archive, outdir=tmpdir)
84
+ extracted_path = os.path.join(tmpdir, 'PRES Dataset')
85
 
86
  with open(os.path.join(extracted_path, 'docs.json')) as f:
87
  docs = json.load(f)