albertvillanova HF staff commited on
Commit
21e98d7
1 Parent(s): a1a1ed1

Deprecate dataset (#4)

Browse files

- Raise deprecation warning (8a9744e6d355a00ca83e38e681615f39abcaaa56)
- Add deprecation disclaimer to dataset card (d06de296b500e6515e980ef4a56dd3883990bd62)
- Disable viewer (7fb442fa3ecc79699c4dad335311feaee473c913)

Files changed (2) hide show
  1. README.md +5 -0
  2. c4.py +5 -0
README.md CHANGED
@@ -21,6 +21,7 @@ task_ids:
21
  - language-modeling
22
  - masked-language-modeling
23
  paperswithcode_id: c4
 
24
  dataset_info:
25
  - config_name: en
26
  features:
@@ -92,6 +93,10 @@ dataset_info:
92
  dataset_size: 6722216056851
93
  ---
94
 
 
 
 
 
95
  # Dataset Card for C4
96
 
97
  ## Table of Contents
 
21
  - language-modeling
22
  - masked-language-modeling
23
  paperswithcode_id: c4
24
+ viewer: false
25
  dataset_info:
26
  - config_name: en
27
  features:
 
93
  dataset_size: 6722216056851
94
  ---
95
 
96
+ <div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
97
+ <p><b>Deprecated:</b> Dataset "c4" is deprecated and will be deleted. Use "<a href="https://huggingface.co/datasets/allenai/c4">allenai/c4</a>" instead.</p>
98
+ </div>
99
+
100
  # Dataset Card for C4
101
 
102
  ## Table of Contents
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(