Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
Portuguese
Size:
10K - 100K
License:
fix identation
Browse files
NERDE.py
CHANGED
@@ -43,10 +43,11 @@ class NerdeDataset(datasets.GeneratorBasedBuilder):
|
|
43 |
VERSION = datasets.Version("1.0.0")
|
44 |
|
45 |
BUILDER_CONFIGS = [
|
46 |
-
datasets.BuilderConfig(name="NERDE", version=VERSION,
|
|
|
47 |
]
|
48 |
-
|
49 |
-
|
50 |
return datasets.DatasetInfo(
|
51 |
description=_DESCRIPTION,
|
52 |
features=datasets.Features(
|
@@ -75,12 +76,11 @@ class NerdeDataset(datasets.GeneratorBasedBuilder):
|
|
75 |
)
|
76 |
),
|
77 |
}
|
78 |
-
),
|
79 |
supervised_keys=None,
|
80 |
homepage=_HOMEPAGE
|
81 |
)
|
82 |
|
83 |
-
|
84 |
def _split_generators(self, dl_manager):
|
85 |
"""Returns SplitGenerators."""
|
86 |
urls_to_download = {
|
@@ -93,15 +93,18 @@ class NerdeDataset(datasets.GeneratorBasedBuilder):
|
|
93 |
return [
|
94 |
datasets.SplitGenerator(
|
95 |
name=datasets.Split.TRAIN,
|
96 |
-
gen_kwargs={
|
|
|
97 |
),
|
98 |
datasets.SplitGenerator(
|
99 |
name=datasets.Split.VALIDATION,
|
100 |
-
gen_kwargs={
|
|
|
101 |
),
|
102 |
datasets.SplitGenerator(
|
103 |
name=datasets.Split.TEST,
|
104 |
-
gen_kwargs={
|
|
|
105 |
),
|
106 |
]
|
107 |
|
@@ -137,4 +140,4 @@ class NerdeDataset(datasets.GeneratorBasedBuilder):
|
|
137 |
"id": str(guid),
|
138 |
"tokens": tokens,
|
139 |
"ner_tags": ner_tags,
|
140 |
-
}
|
|
|
43 |
VERSION = datasets.Version("1.0.0")
|
44 |
|
45 |
BUILDER_CONFIGS = [
|
46 |
+
datasets.BuilderConfig(name="NERDE", version=VERSION,
|
47 |
+
description="Economic Defense NER dataset"),
|
48 |
]
|
49 |
+
|
50 |
+
def _info(self):
|
51 |
return datasets.DatasetInfo(
|
52 |
description=_DESCRIPTION,
|
53 |
features=datasets.Features(
|
|
|
76 |
)
|
77 |
),
|
78 |
}
|
79 |
+
),
|
80 |
supervised_keys=None,
|
81 |
homepage=_HOMEPAGE
|
82 |
)
|
83 |
|
|
|
84 |
def _split_generators(self, dl_manager):
|
85 |
"""Returns SplitGenerators."""
|
86 |
urls_to_download = {
|
|
|
93 |
return [
|
94 |
datasets.SplitGenerator(
|
95 |
name=datasets.Split.TRAIN,
|
96 |
+
gen_kwargs={
|
97 |
+
"filepath": downloaded_files["train"], "split": "train"},
|
98 |
),
|
99 |
datasets.SplitGenerator(
|
100 |
name=datasets.Split.VALIDATION,
|
101 |
+
gen_kwargs={
|
102 |
+
"filepath": downloaded_files["dev"], "split": "validation"},
|
103 |
),
|
104 |
datasets.SplitGenerator(
|
105 |
name=datasets.Split.TEST,
|
106 |
+
gen_kwargs={
|
107 |
+
"filepath": downloaded_files["test"], "split": "test"},
|
108 |
),
|
109 |
]
|
110 |
|
|
|
140 |
"id": str(guid),
|
141 |
"tokens": tokens,
|
142 |
"ner_tags": ner_tags,
|
143 |
+
}
|