Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- newsroom.py +1 -3
newsroom.py
CHANGED
@@ -111,9 +111,7 @@ class Newsroom(datasets.GeneratorBasedBuilder):
|
|
111 |
data_dir = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
|
112 |
if not os.path.exists(data_dir):
|
113 |
raise FileNotFoundError(
|
114 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('newsroom', data_dir=...)` that includes files unzipped from the reclor zip. Manual download instructions: {}"
|
115 |
-
data_dir, self.manual_download_instructions
|
116 |
-
)
|
117 |
)
|
118 |
return [
|
119 |
datasets.SplitGenerator(
|
|
|
111 |
data_dir = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
|
112 |
if not os.path.exists(data_dir):
|
113 |
raise FileNotFoundError(
|
114 |
+
f"{data_dir} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('newsroom', data_dir=...)` that includes files unzipped from the reclor zip. Manual download instructions: {self.manual_download_instructions}"
|
|
|
|
|
115 |
)
|
116 |
return [
|
117 |
datasets.SplitGenerator(
|