Commit
•
7d73220
1
Parent(s):
7a59ada
Raise deprecation warning
Browse files
mc4.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
|
4 |
import gzip
|
5 |
import json
|
|
|
6 |
|
7 |
import datasets
|
8 |
|
@@ -280,6 +281,10 @@ class Mc4(datasets.GeneratorBasedBuilder):
|
|
280 |
BUILDER_CONFIG_CLASS = Mc4Config
|
281 |
|
282 |
def _info(self):
|
|
|
|
|
|
|
|
|
283 |
return datasets.DatasetInfo(
|
284 |
description=_DESCRIPTION,
|
285 |
features=datasets.Features(
|
|
|
3 |
|
4 |
import gzip
|
5 |
import json
|
6 |
+
import warnings
|
7 |
|
8 |
import datasets
|
9 |
|
|
|
281 |
BUILDER_CONFIG_CLASS = Mc4Config
|
282 |
|
283 |
def _info(self):
|
284 |
+
warnings.warn(
|
285 |
+
"Dataset 'mc4' is deprecated and will be deleted. Use 'allenai/c4' instead.",
|
286 |
+
FutureWarning,
|
287 |
+
)
|
288 |
return datasets.DatasetInfo(
|
289 |
description=_DESCRIPTION,
|
290 |
features=datasets.Features(
|