Datasets:
Commit
•
ac1685c
1
Parent(s):
5bf07d5
Raise DefunctDatasetError
Browse files- bookcorpusopen.py +4 -0
bookcorpusopen.py
CHANGED
@@ -21,6 +21,7 @@ import os
|
|
21 |
from fnmatch import fnmatch
|
22 |
|
23 |
import datasets
|
|
|
24 |
|
25 |
|
26 |
_DESCRIPTION = """\
|
@@ -75,6 +76,9 @@ class BookCorpusOpen(datasets.GeneratorBasedBuilder):
|
|
75 |
]
|
76 |
|
77 |
def _info(self):
|
|
|
|
|
|
|
78 |
return datasets.DatasetInfo(
|
79 |
description=_DESCRIPTION,
|
80 |
features=datasets.Features(
|
|
|
21 |
from fnmatch import fnmatch
|
22 |
|
23 |
import datasets
|
24 |
+
from datasets.exceptions import DefunctDatasetError
|
25 |
|
26 |
|
27 |
_DESCRIPTION = """\
|
|
|
76 |
]
|
77 |
|
78 |
def _info(self):
|
79 |
+
raise DefunctDatasetError(
|
80 |
+
"Dataset 'bookcorpusopen' is defunct and no longer accessible due to unavailability of the source data"
|
81 |
+
)
|
82 |
return datasets.DatasetInfo(
|
83 |
description=_DESCRIPTION,
|
84 |
features=datasets.Features(
|