mariosasko commited on
Commit
4020484
1 Parent(s): a193dc8

Remove warning from the script

Browse files
Files changed (1) hide show
  1. wikipedia.py +0 -9
wikipedia.py CHANGED
@@ -22,7 +22,6 @@ import codecs
22
  import json
23
  import os
24
  import re
25
- import warnings
26
  import xml.etree.cElementTree as etree
27
  from urllib.parse import quote
28
 
@@ -935,14 +934,6 @@ class Wikipedia(datasets.ArrowBasedBuilder):
935
  BATCH_SIZE = 1000
936
 
937
  def _info(self):
938
- warnings.warn(
939
- """
940
- This dataset is deprecated in favor of "wikimedia/wikipedia".
941
- Use `datasets.load_dataset('wikimedia/wikipedia', f'{date}.{lang_code}')` to load the dataset instead (e.g. '20231101.en').
942
- """,
943
- FutureWarning,
944
- )
945
-
946
  return datasets.DatasetInfo(
947
  description=_DESCRIPTION,
948
  features=datasets.Features(
 
22
  import json
23
  import os
24
  import re
 
25
  import xml.etree.cElementTree as etree
26
  from urllib.parse import quote
27
 
 
934
  BATCH_SIZE = 1000
935
 
936
  def _info(self):
 
 
 
 
 
 
 
 
937
  return datasets.DatasetInfo(
938
  description=_DESCRIPTION,
939
  features=datasets.Features(