Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
German
Size:
n<1K
License:
Commit
•
c35074d
1
Parent(s):
c7c9903
Add deprecation warning to dataset script
Browse files
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(
|