Raise DefunctDatasetError
#11
by
albertvillanova
HF staff
- opened
- amazon_reviews_multi.py +4 -0
amazon_reviews_multi.py
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
import json
|
20 |
|
21 |
import datasets
|
|
|
22 |
|
23 |
|
24 |
_CITATION = """\
|
@@ -87,6 +88,9 @@ class AmazonReviewsMulti(datasets.GeneratorBasedBuilder):
|
|
87 |
DEFAULT_CONFIG_NAME = _ALL_LANGUAGES
|
88 |
|
89 |
def _info(self):
|
|
|
|
|
|
|
90 |
return datasets.DatasetInfo(
|
91 |
description=_DESCRIPTION,
|
92 |
features=datasets.Features(
|
|
|
19 |
import json
|
20 |
|
21 |
import datasets
|
22 |
+
from datasets.exceptions import DefunctDatasetError
|
23 |
|
24 |
|
25 |
_CITATION = """\
|
|
|
88 |
DEFAULT_CONFIG_NAME = _ALL_LANGUAGES
|
89 |
|
90 |
def _info(self):
|
91 |
+
raise DefunctDatasetError(
|
92 |
+
"Dataset 'amazon_reviews_multi' is defunct and no longer accessible due to the decision of data providers"
|
93 |
+
)
|
94 |
return datasets.DatasetInfo(
|
95 |
description=_DESCRIPTION,
|
96 |
features=datasets.Features(
|