Commit
·
cfcb865
1
Parent(s):
45f6105
Update bionlp2.py
Browse files- bionlp2.py +1 -1
bionlp2.py
CHANGED
@@ -89,7 +89,7 @@ class BioNLP2004(datasets.GeneratorBasedBuilder):
|
|
89 |
print(data)
|
90 |
|
91 |
nlist = []
|
92 |
-
for indx in data[
|
93 |
nlist.append(custom_names.index(inv_map[indx]))
|
94 |
#data['ner_tags'] = map_ner_tags(data['ner_tags'])
|
95 |
data['ner_tags']=nlist
|
|
|
89 |
print(data)
|
90 |
|
91 |
nlist = []
|
92 |
+
for indx in data['ner_tags']:
|
93 |
nlist.append(custom_names.index(inv_map[indx]))
|
94 |
#data['ner_tags'] = map_ner_tags(data['ner_tags'])
|
95 |
data['ner_tags']=nlist
|