gabrielaltay
commited on
Commit
•
73e58c0
1
Parent(s):
cc3d5f8
fix parsing import
Browse files- bionlp_st_2019_bb.py +3 -1
bionlp_st_2019_bb.py
CHANGED
@@ -21,6 +21,8 @@ import datasets
|
|
21 |
from .bigbiohub import kb_features
|
22 |
from .bigbiohub import BigBioConfig
|
23 |
from .bigbiohub import Tasks
|
|
|
|
|
24 |
|
25 |
_DATASETNAME = "bionlp_st_2019_bb"
|
26 |
_DISPLAYNAME = "BioNLP 2019 BB"
|
@@ -316,7 +318,7 @@ class bionlp_st_2019_bb(datasets.GeneratorBasedBuilder):
|
|
316 |
elif self.config.schema == "bigbio_kb":
|
317 |
txt_files = list(data_files.glob("*txt"))
|
318 |
for guid, txt_file in enumerate(txt_files):
|
319 |
-
example =
|
320 |
self.parse_brat_file(txt_file)
|
321 |
)
|
322 |
example["id"] = str(guid)
|
|
|
21 |
from .bigbiohub import kb_features
|
22 |
from .bigbiohub import BigBioConfig
|
23 |
from .bigbiohub import Tasks
|
24 |
+
from .bigbiohub import brat_parse_to_bigbio_kb
|
25 |
+
|
26 |
|
27 |
_DATASETNAME = "bionlp_st_2019_bb"
|
28 |
_DISPLAYNAME = "BioNLP 2019 BB"
|
|
|
318 |
elif self.config.schema == "bigbio_kb":
|
319 |
txt_files = list(data_files.glob("*txt"))
|
320 |
for guid, txt_file in enumerate(txt_files):
|
321 |
+
example = brat_parse_to_bigbio_kb(
|
322 |
self.parse_brat_file(txt_file)
|
323 |
)
|
324 |
example["id"] = str(guid)
|