Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- recipe_nlg.py +1 -5
recipe_nlg.py
CHANGED
@@ -86,11 +86,7 @@ class RecipeNlg(datasets.GeneratorBasedBuilder):
|
|
86 |
path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
|
87 |
if not os.path.exists(path_to_manual_file):
|
88 |
raise FileNotFoundError(
|
89 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('recipe_nlg', data_dir=...)` that includes file name {}. Manual download instructions: {}"
|
90 |
-
path_to_manual_file,
|
91 |
-
_FILENAME,
|
92 |
-
self.manual_download_instructions,
|
93 |
-
)
|
94 |
)
|
95 |
return [
|
96 |
datasets.SplitGenerator(
|
|
|
86 |
path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
|
87 |
if not os.path.exists(path_to_manual_file):
|
88 |
raise FileNotFoundError(
|
89 |
+
f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('recipe_nlg', data_dir=...)` that includes file name {_FILENAME}. Manual download instructions: {self.manual_download_instructions}"
|
|
|
|
|
|
|
|
|
90 |
)
|
91 |
return [
|
92 |
datasets.SplitGenerator(
|