wzkariampuzha commited on
Commit
9f91f66
1 Parent(s): 9ca744f

Update EpiSet4NER-v2.py

Browse files
Files changed (1) hide show
  1. 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. The test set was then manually corrected by a rare disease expert.
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/raw/master/EpiExtract4GARD/datasets/EpiCustomV3/"
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("3.2.1"), description="EpiSet4NER by NIH NCATS GARD"),
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-LOC", #(1)
77
- "I-LOC", #(2)
78
- "B-EPI", #(3)
79
- "I-EPI", #(4)
80
- "B-STAT", #(5)
81
- "I-STAT", #(6)
 
 
 
 
 
 
 
 
 
 
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
  ),