mariosasko commited on
Commit
7022b71
1 Parent(s): 3a84779

Deprecate dataset

Browse files
Files changed (2) hide show
  1. README.md +4 -0
  2. wikipedia.py +9 -0
README.md CHANGED
@@ -723,6 +723,10 @@ config_names:
723
 
724
  # Dataset Card for Wikipedia
725
 
 
 
 
 
726
  ## Table of Contents
727
  - [Dataset Description](#dataset-description)
728
  - [Dataset Summary](#dataset-summary)
 
723
 
724
  # Dataset Card for Wikipedia
725
 
726
+ <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">
727
+ <p><b>Deprecated:</b> Dataset "wikipedia" is deprecated and will soon be deleted. Use the <a href="https://huggingface.co/wikimedia/wikipedia">wikimedia/wikipedia</a> dataset instead.</p>
728
+ </div>
729
+
730
  ## Table of Contents
731
  - [Dataset Description](#dataset-description)
732
  - [Dataset Summary](#dataset-summary)
wikipedia.py CHANGED
@@ -21,6 +21,7 @@ import bz2
21
  import codecs
22
  import json
23
  import re
 
24
  import xml.etree.cElementTree as etree
25
  from urllib.parse import quote
26
 
@@ -918,6 +919,14 @@ class Wikipedia(datasets.BeamBasedBuilder):
918
  ]
919
 
920
  def _info(self):
 
 
 
 
 
 
 
 
921
  return datasets.DatasetInfo(
922
  description=_DESCRIPTION,
923
  features=datasets.Features(
 
21
  import codecs
22
  import json
23
  import re
24
+ import warnings
25
  import xml.etree.cElementTree as etree
26
  from urllib.parse import quote
27
 
 
919
  ]
920
 
921
  def _info(self):
922
+ warnings.warn(
923
+ """
924
+ This dataset is deprecated in favor of "wikimedia/wikipedia".
925
+ Use `datasets.load_dataset('wikimedia/wikipedia', '20231101.en')` to load the dataset instead.
926
+ """,
927
+ FutureWarning,
928
+ )
929
+
930
  return datasets.DatasetInfo(
931
  description=_DESCRIPTION,
932
  features=datasets.Features(