Commit ·
e984dc5
1
Parent(s): 44e17e4
fix bigbio imports
Browse files31 unmodified lines323334353637221 unmodified lines25926026126226326426526626726826927027127231 unmodified linesfrom .bigbiohub import kb_featuresfrom .bigbiohub import BigBioConfigfrom .bigbiohub import Tasks_LANGUAGES = ['Spanish']_PUBMED = True221 unmodified linesif self.config.schema == "source":for guid, txt_file in enumerate(txt_files):example = parsing.parse_brat_file(txt_file)example["id"] = str(guid)yield guid, exampleelif self.config.schema == "bigbio_kb":for guid, txt_file in enumerate(txt_files):example = parsing.brat_parse_to_bigbio_kb(parsing.parse_brat_file(txt_file))example["id"] = str(guid)yield guid, example31 unmodified lines323334353637383940221 unmodified lines26226326426526626726826927027127227327427531 unmodified linesfrom .bigbiohub import kb_featuresfrom .bigbiohub import BigBioConfigfrom .bigbiohub import Tasksfrom .bigbiohub import parse_brat_filefrom .bigbiohub import brat_parse_to_bigbio_kb_LANGUAGES = ['Spanish']_PUBMED = True221 unmodified linesif self.config.schema == "source":for guid, txt_file in enumerate(txt_files):example = parse_brat_file(txt_file)example["id"] = str(guid)yield guid, exampleelif self.config.schema == "bigbio_kb":for guid, txt_file in enumerate(txt_files):example = brat_parse_to_bigbio_kb(parse_brat_file(txt_file))example["id"] = str(guid)yield guid, example
ctebmsp.py+6-3