Raise deprecation warning
Browse files
c4.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
|
4 |
import gzip
|
5 |
import json
|
|
|
6 |
|
7 |
import datasets
|
8 |
|
@@ -49,6 +50,10 @@ class C4(datasets.GeneratorBasedBuilder):
|
|
49 |
BUILDER_CONFIGS = [datasets.BuilderConfig(name) for name in _VARIANTS]
|
50 |
|
51 |
def _info(self):
|
|
|
|
|
|
|
|
|
52 |
return datasets.DatasetInfo(
|
53 |
description=_DESCRIPTION,
|
54 |
features=datasets.Features(
|
|
|
3 |
|
4 |
import gzip
|
5 |
import json
|
6 |
+
import warnings
|
7 |
|
8 |
import datasets
|
9 |
|
|
|
50 |
BUILDER_CONFIGS = [datasets.BuilderConfig(name) for name in _VARIANTS]
|
51 |
|
52 |
def _info(self):
|
53 |
+
warnings.warn(
|
54 |
+
"Dataset 'c4' is deprecated and will be deleted. Use 'allenai/c4' instead.",
|
55 |
+
FutureWarning,
|
56 |
+
)
|
57 |
return datasets.DatasetInfo(
|
58 |
description=_DESCRIPTION,
|
59 |
features=datasets.Features(
|