system HF staff commited on
Commit
99b4d0a
1 Parent(s): 4e6c871

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. ms_terms.py +1 -3
ms_terms.py CHANGED
@@ -73,9 +73,7 @@ class MsTerms(datasets.GeneratorBasedBuilder):
73
 
74
  if not os.path.exists(path_to_manual_file):
75
  raise FileNotFoundError(
76
- "{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('ms_terms', data_dir=...)` that includes a file name {}. Manual download instructions: {})".format(
77
- path_to_manual_file, _FILENAME, self.manual_download_instructions
78
- )
79
  )
80
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
81
 
 
73
 
74
  if not os.path.exists(path_to_manual_file):
75
  raise FileNotFoundError(
76
+ f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('ms_terms', data_dir=...)` that includes a file name {_FILENAME}. Manual download instructions: {self.manual_download_instructions})"
 
 
77
  )
78
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
79