Datasets:
Raise DefunctDatasetError
Browse files- the_pile_openwebtext2.py +4 -0
the_pile_openwebtext2.py
CHANGED
|
@@ -20,6 +20,7 @@ import json
|
|
| 20 |
import zstandard
|
| 21 |
|
| 22 |
import datasets
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
_CITATION = """\
|
|
@@ -53,6 +54,9 @@ class Openwebtext2(datasets.GeneratorBasedBuilder):
|
|
| 53 |
]
|
| 54 |
|
| 55 |
def _info(self):
|
|
|
|
|
|
|
|
|
|
| 56 |
return datasets.DatasetInfo(
|
| 57 |
description=_DESCRIPTION,
|
| 58 |
features=datasets.Features(
|
|
|
|
| 20 |
import zstandard
|
| 21 |
|
| 22 |
import datasets
|
| 23 |
+
from datasets.exceptions import DefunctDatasetError
|
| 24 |
|
| 25 |
|
| 26 |
_CITATION = """\
|
|
|
|
| 54 |
]
|
| 55 |
|
| 56 |
def _info(self):
|
| 57 |
+
raise DefunctDatasetError(
|
| 58 |
+
"Dataset 'the_pile_openwebtext2' is defunct and no longer accessible due to unavailability of the source data"
|
| 59 |
+
)
|
| 60 |
return datasets.DatasetInfo(
|
| 61 |
description=_DESCRIPTION,
|
| 62 |
features=datasets.Features(
|