Commit ·
90ee8e8
1
Parent(s): 45646b9
Update bc4chemd.py
Browse files- bc4chemd.py +2 -0
bc4chemd.py
CHANGED
|
@@ -123,6 +123,8 @@ class Bc4chemdNer(datasets.GeneratorBasedBuilder):
|
|
| 123 |
ner_tags.append("B-CHEMICAL")
|
| 124 |
if(splits[1].rstrip()=="I-Chemical"):
|
| 125 |
ner_tags.append("I-CHEMICAL")
|
|
|
|
|
|
|
| 126 |
|
| 127 |
# last example
|
| 128 |
yield guid, {
|
|
|
|
| 123 |
ner_tags.append("B-CHEMICAL")
|
| 124 |
if(splits[1].rstrip()=="I-Chemical"):
|
| 125 |
ner_tags.append("I-CHEMICAL")
|
| 126 |
+
else:
|
| 127 |
+
ner_tags.append("O")
|
| 128 |
|
| 129 |
# last example
|
| 130 |
yield guid, {
|