Datasets:
Update files from the datasets library (from 1.0.2)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.0.2
- wiki_dpr.py +1 -1
wiki_dpr.py
CHANGED
@@ -155,7 +155,7 @@ class WikiDpr(datasets.GeneratorBasedBuilder):
|
|
155 |
{"embeddings_index": os.path.join(_INDEX_URL, self.config.index_file.format(split=split))}
|
156 |
)
|
157 |
return downloaded_resources["embeddings_index"]
|
158 |
-
except ConnectionError: # index doesn't exist
|
159 |
pass
|
160 |
|
161 |
def _post_process(self, dataset, resources_paths):
|
|
|
155 |
{"embeddings_index": os.path.join(_INDEX_URL, self.config.index_file.format(split=split))}
|
156 |
)
|
157 |
return downloaded_resources["embeddings_index"]
|
158 |
+
except (FileNotFoundError, ConnectionError): # index doesn't exist
|
159 |
pass
|
160 |
|
161 |
def _post_process(self, dataset, resources_paths):
|