Commit
•
f86e1a5
1
Parent(s):
a2ff852
Raise DefunctDatasetError
Browse files
the_pile_stack_exchange.py
CHANGED
@@ -19,6 +19,7 @@ import zipfile
|
|
19 |
from pathlib import Path
|
20 |
|
21 |
import datasets
|
|
|
22 |
|
23 |
|
24 |
_CITATION = """\
|
@@ -51,6 +52,9 @@ class ThePileStackExchange(datasets.GeneratorBasedBuilder):
|
|
51 |
]
|
52 |
|
53 |
def _info(self):
|
|
|
|
|
|
|
54 |
return datasets.DatasetInfo(
|
55 |
description=_DESCRIPTION,
|
56 |
features=datasets.Features({"domain": datasets.Value("string"), "text": datasets.Value("string")}),
|
|
|
19 |
from pathlib import Path
|
20 |
|
21 |
import datasets
|
22 |
+
from datasets.exceptions import DefunctDatasetError
|
23 |
|
24 |
|
25 |
_CITATION = """\
|
|
|
52 |
]
|
53 |
|
54 |
def _info(self):
|
55 |
+
raise DefunctDatasetError(
|
56 |
+
"Dataset 'the_pile_stack_exchange' is defunct and no longer accessible due to unavailability of the source data"
|
57 |
+
)
|
58 |
return datasets.DatasetInfo(
|
59 |
description=_DESCRIPTION,
|
60 |
features=datasets.Features({"domain": datasets.Value("string"), "text": datasets.Value("string")}),
|