Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
German
Size:
n<1K
License:
Commit
•
368943c
1
Parent(s):
2fd65eb
Deprecate dataset (#3)
Browse files- Add deprecation warning to dataset card (c7c9903a96c1527a37d6edce9d099c56914c380b)
- Add deprecation warning to dataset script (c35074df328ee31ab44df14b1424ca1765ec57cd)
- README.md +3 -1
- german_legal_entity_recognition.py +5 -0
README.md
CHANGED
@@ -57,7 +57,9 @@ pretty_name: Legal Documents Entity Recognition
|
|
57 |
|
58 |
### Dataset Summary
|
59 |
|
60 |
-
|
|
|
|
|
61 |
|
62 |
### Supported Tasks and Leaderboards
|
63 |
|
|
|
57 |
|
58 |
### Dataset Summary
|
59 |
|
60 |
+
<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">
|
61 |
+
<p><b>Deprecated:</b> Dataset "german_legal_entity_recognition" is deprecated and will be deleted. Use <a href="https://huggingface.co/datasets/elenanereiss/german-ler">"elenanereiss/german-ler"</a> instead.</p>
|
62 |
+
</div>
|
63 |
|
64 |
### Supported Tasks and Leaderboards
|
65 |
|
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(
|