chintagunta85 commited on
Commit
3fb970e
·
1 Parent(s): 8c3cd79

Update bionlp2.py

Browse files
Files changed (1) hide show
  1. bionlp2.py +3 -3
bionlp2.py CHANGED
@@ -94,8 +94,8 @@ class BioNLP2004(datasets.GeneratorBasedBuilder):
94
  #data['ner_tags'] = map_ner_tags(data['ner_tags'])
95
  data["ner_tags"]=nlist
96
  xstr = str(_key)
97
- yield xstr,{"id":xstr,"tokens":data['tokens'], "nertags":data["ner_tags"]}
98
- #yield _key,data
99
  _key += 1
100
 
101
  def _info(self):
@@ -106,7 +106,7 @@ class BioNLP2004(datasets.GeneratorBasedBuilder):
106
  description=_DESCRIPTION,
107
  features=datasets.Features(
108
  {
109
- "id": datasets.Value("string"),
110
  "tokens": datasets.Sequence(datasets.Value("string")),
111
  "ner_tags": datasets.Sequence(
112
  datasets.features.ClassLabel(
 
94
  #data['ner_tags'] = map_ner_tags(data['ner_tags'])
95
  data["ner_tags"]=nlist
96
  xstr = str(_key)
97
+ #yield xstr,{"id":xstr,"tokens":data['tokens'], "nertags":data["ner_tags"]}
98
+ yield _key,data
99
  _key += 1
100
 
101
  def _info(self):
 
106
  description=_DESCRIPTION,
107
  features=datasets.Features(
108
  {
109
+ #"id": datasets.Value("string"),
110
  "tokens": datasets.Sequence(datasets.Value("string")),
111
  "ner_tags": datasets.Sequence(
112
  datasets.features.ClassLabel(