Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
msr_zhen_translation_parity.py
CHANGED
@@ -93,9 +93,7 @@ class MsrZhenTranslationParity(datasets.GeneratorBasedBuilder):
|
|
93 |
|
94 |
if not os.path.exists(path_to_manual_file):
|
95 |
raise FileNotFoundError(
|
96 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('msr_zhen_translation_parity', data_dir=...)`. Manual download instructions: {})"
|
97 |
-
path_to_manual_file, self.manual_download_instructions
|
98 |
-
)
|
99 |
)
|
100 |
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
|
101 |
|
|
|
93 |
|
94 |
if not os.path.exists(path_to_manual_file):
|
95 |
raise FileNotFoundError(
|
96 |
+
f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('msr_zhen_translation_parity', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})"
|
|
|
|
|
97 |
)
|
98 |
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
|
99 |
|