albertvillanova HF staff commited on
Commit
c35074d
1 Parent(s): c7c9903

Add deprecation warning to dataset script

Browse files
Files changed (1) hide show
  1. german_legal_entity_recognition.py +5 -0
german_legal_entity_recognition.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
 
3
  import datasets
4
 
@@ -53,6 +54,10 @@ class GermanLegalEntityRecognition(datasets.GeneratorBasedBuilder):
53
  DEFAULT_CONFIG_NAME = _ALL
54
 
55
  def _info(self):
 
 
 
 
56
  return datasets.DatasetInfo(
57
  description=_DESCRIPTION,
58
  features=datasets.Features(
 
1
  import os
2
+ import warnings
3
 
4
  import datasets
5
 
 
54
  DEFAULT_CONFIG_NAME = _ALL
55
 
56
  def _info(self):
57
+ warnings.warn(
58
+ "Dataset 'german_legal_entity_recognition' is deprecated and will be deleted. Use 'elenanereiss/german-ler' instead.",
59
+ FutureWarning,
60
+ )
61
  return datasets.DatasetInfo(
62
  description=_DESCRIPTION,
63
  features=datasets.Features(