system HF staff commited on
Commit
b244203
1 Parent(s): 75a7e90

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. arxiv_dataset.py +1 -3
arxiv_dataset.py CHANGED
@@ -102,9 +102,7 @@ class ArxivDataset(datasets.GeneratorBasedBuilder):
102
  path_to_manual_file = os.path.join(os.path.abspath(os.path.expanduser(dl_manager.manual_dir)), _FILENAME)
103
  if not os.path.exists(path_to_manual_file):
104
  raise FileNotFoundError(
105
- "{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('arxiv_dataset', data_dir=...)` that includes a file name {}. Manual download instructions: {})".format(
106
- path_to_manual_file, _FILENAME, self.manual_download_instructions
107
- )
108
  )
109
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
110
 
 
102
  path_to_manual_file = os.path.join(os.path.abspath(os.path.expanduser(dl_manager.manual_dir)), _FILENAME)
103
  if not os.path.exists(path_to_manual_file):
104
  raise FileNotFoundError(
105
+ "{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('arxiv_dataset', data_dir=...)` that includes a file name {_FILENAME}. Manual download instructions: {self.manual_download_instructions})"
 
 
106
  )
107
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
108