Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
License:
Commit
·
9f91f66
1
Parent(s):
9ca744f
Update EpiSet4NER-v2.py
Browse files- EpiSet4NER-v2.py +19 -9
EpiSet4NER-v2.py
CHANGED
@@ -34,11 +34,11 @@ _CITATION = """\
|
|
34 |
|
35 |
_DESCRIPTION = """\
|
36 |
**REWRITE*
|
37 |
-
EpiSet4NER is a dataset generated from 620 rare disease abstracts labeled using statistical and rule-base methods.
|
38 |
For more details see *INSERT PAPER* and https://github.com/ncats/epi4GARD/tree/master/EpiExtract4GARD#epiextract4gard
|
39 |
"""
|
40 |
|
41 |
-
_URL = "https://github.com/
|
42 |
_TRAINING_FILE = "train.tsv"
|
43 |
_VAL_FILE = "val.tsv"
|
44 |
_TEST_FILE = "test.tsv"
|
@@ -59,7 +59,7 @@ class EpiSet(datasets.GeneratorBasedBuilder):
|
|
59 |
"""EpiSet4NER by GARD."""
|
60 |
|
61 |
BUILDER_CONFIGS = [
|
62 |
-
EpiSetConfig(name="EpiSet4NER", version=datasets.Version("
|
63 |
]
|
64 |
|
65 |
def _info(self):
|
@@ -73,12 +73,22 @@ class EpiSet(datasets.GeneratorBasedBuilder):
|
|
73 |
datasets.features.ClassLabel(
|
74 |
names=[
|
75 |
"O", #(0)
|
76 |
-
"B-
|
77 |
-
"I-
|
78 |
-
"B-
|
79 |
-
"I-
|
80 |
-
"B-
|
81 |
-
"I-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
]
|
83 |
)
|
84 |
),
|
|
|
34 |
|
35 |
_DESCRIPTION = """\
|
36 |
**REWRITE*
|
37 |
+
EpiSet4NER-2 is a dataset generated from 620 rare disease abstracts labeled using statistical and rule-base methods.
|
38 |
For more details see *INSERT PAPER* and https://github.com/ncats/epi4GARD/tree/master/EpiExtract4GARD#epiextract4gard
|
39 |
"""
|
40 |
|
41 |
+
_URL = "https://github.com/ncats/epi4GARD/blob/master/epi_extract_datasets/datasets/epi_gold/"
|
42 |
_TRAINING_FILE = "train.tsv"
|
43 |
_VAL_FILE = "val.tsv"
|
44 |
_TEST_FILE = "test.tsv"
|
|
|
59 |
"""EpiSet4NER by GARD."""
|
60 |
|
61 |
BUILDER_CONFIGS = [
|
62 |
+
EpiSetConfig(name="EpiSet4NER", version=datasets.Version("4.0"), description="EpiSet4NER by NIH NCATS GARD"),
|
63 |
]
|
64 |
|
65 |
def _info(self):
|
|
|
73 |
datasets.features.ClassLabel(
|
74 |
names=[
|
75 |
"O", #(0)
|
76 |
+
"B-DIS", #(1)
|
77 |
+
"I-DIS", #(2)
|
78 |
+
"B-ABRV", #(3)
|
79 |
+
"I-ABRV", #(4)
|
80 |
+
"B-EPI", #(5)
|
81 |
+
"I-EPI", #(6)
|
82 |
+
"B-STAT", #(7)
|
83 |
+
"I-STAT", #(8)
|
84 |
+
"B-LOC", #(9)
|
85 |
+
"I-LOC", #(10)
|
86 |
+
"B-DATE", #(11)
|
87 |
+
"I-DATE", #(12)
|
88 |
+
"B-SEX", #(13)
|
89 |
+
"I-SEX", #(14)
|
90 |
+
"B-ETHN", #(15)
|
91 |
+
"I-ETHN", #(16)
|
92 |
]
|
93 |
)
|
94 |
),
|