Datasets:
Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- so_stacksample.py +1 -3
so_stacksample.py
CHANGED
@@ -121,9 +121,7 @@ class SOStackSample(datasets.GeneratorBasedBuilder):
|
|
121 |
)
|
122 |
if not os.path.exists(path_to_manual_file):
|
123 |
raise FileNotFoundError(
|
124 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('so_stacksample', '{}', data_dir=...)` that includes a file name {}. Manual download instructions: \n{})"
|
125 |
-
path_to_manual_file, self.config.name, self.config.name + ".csv", self.manual_download_instructions
|
126 |
-
)
|
127 |
)
|
128 |
|
129 |
return [
|
|
|
121 |
)
|
122 |
if not os.path.exists(path_to_manual_file):
|
123 |
raise FileNotFoundError(
|
124 |
+
f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('so_stacksample', '{self.config.name}', data_dir=...)` that includes a file name {self.config.name + '.csv'}. Manual download instructions: \n{self.manual_download_instructions})"
|
|
|
|
|
125 |
)
|
126 |
|
127 |
return [
|