Datasets:

ArneBinder commited on
Commit
8c02587
·
1 Parent(s): 4511165

fix imports

Browse files
Files changed (1) hide show
  1. scidtb_argmin.py +3 -3
scidtb_argmin.py CHANGED
@@ -1,7 +1,7 @@
1
  """The SciDTB-Argmin dataset for Argumentation Mining on English scientific abstracts."""
2
  import glob
3
  import json
4
- import os.path
5
  from pathlib import Path
6
 
7
  import datasets
@@ -101,8 +101,8 @@ class SciDTBArgmin(datasets.GeneratorBasedBuilder):
101
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
102
 
103
  if dl_manager.manual_dir is not None:
104
- base_path = os.path.abspath(dl_manager.manual_dir)
105
- if not os.path.isdir(base_path):
106
  base_path = dl_manager.extract(base_path)
107
  else:
108
  base_path = dl_manager.download_and_extract(_URL)
 
1
  """The SciDTB-Argmin dataset for Argumentation Mining on English scientific abstracts."""
2
  import glob
3
  import json
4
+ from os.path import abspath, isdir
5
  from pathlib import Path
6
 
7
  import datasets
 
101
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
102
 
103
  if dl_manager.manual_dir is not None:
104
+ base_path = abspath(dl_manager.manual_dir)
105
+ if not isdir(base_path):
106
  base_path = dl_manager.extract(base_path)
107
  else:
108
  base_path = dl_manager.download_and_extract(_URL)