Commit
•
6de3985
1
Parent(s):
c293a56
Raise DefunctDatasetError
Browse files- amazon_us_reviews.py +4 -0
amazon_us_reviews.py
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
import csv
|
20 |
|
21 |
import datasets
|
|
|
22 |
|
23 |
|
24 |
_CITATION = """\
|
@@ -129,6 +130,9 @@ class AmazonUSReviews(datasets.GeneratorBasedBuilder):
|
|
129 |
]
|
130 |
|
131 |
def _info(self):
|
|
|
|
|
|
|
132 |
return datasets.DatasetInfo(
|
133 |
description=_DESCRIPTION,
|
134 |
features=datasets.Features(
|
|
|
19 |
import csv
|
20 |
|
21 |
import datasets
|
22 |
+
from datasets.exceptions import DefunctDatasetError
|
23 |
|
24 |
|
25 |
_CITATION = """\
|
|
|
130 |
]
|
131 |
|
132 |
def _info(self):
|
133 |
+
raise DefunctDatasetError(
|
134 |
+
"Dataset 'amazon_us_reviews' is defunct and no longer accessible due to the decision of data providers"
|
135 |
+
)
|
136 |
return datasets.DatasetInfo(
|
137 |
description=_DESCRIPTION,
|
138 |
features=datasets.Features(
|