Datasets:

Multilinguality:
multilingual
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
License:
albertvillanova HF staff commited on
Commit
7d73220
1 Parent(s): 7a59ada

Raise deprecation warning

Browse files
Files changed (1) hide show
  1. mc4.py +5 -0
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(