Datasets:
Raise DefunctDatasetError
Browse files
eli5.py
CHANGED
@@ -27,6 +27,7 @@ from os.path import join as pjoin
|
|
27 |
from time import time
|
28 |
|
29 |
import datasets
|
|
|
30 |
|
31 |
|
32 |
logger = datasets.logging.get_logger(__name__)
|
@@ -270,6 +271,9 @@ class Eli5(datasets.GeneratorBasedBuilder):
|
|
270 |
test_dummy_data = False
|
271 |
|
272 |
def _info(self):
|
|
|
|
|
|
|
273 |
return datasets.DatasetInfo(
|
274 |
description=_DESCRIPTION,
|
275 |
features=datasets.Features(
|
|
|
27 |
from time import time
|
28 |
|
29 |
import datasets
|
30 |
+
from datasets.exceptions import DefunctDatasetError
|
31 |
|
32 |
|
33 |
logger = datasets.logging.get_logger(__name__)
|
|
|
271 |
test_dummy_data = False
|
272 |
|
273 |
def _info(self):
|
274 |
+
raise DefunctDatasetError(
|
275 |
+
"Dataset 'eli5' is defunct and no longer accessible due to unavailability of the source data"
|
276 |
+
)
|
277 |
return datasets.DatasetInfo(
|
278 |
description=_DESCRIPTION,
|
279 |
features=datasets.Features(
|