import MBSP # Ensure that the tokenizer's biomedical mode is enabled: MBSP.tokenizer.BIOMEDICAL = True # The biomedical parse() function is similar to MBSP's, # but the output has an additional SEMANTIC tag at the end ('cell_type', 'NONE', ...) # This tag ends up in Word.custom_tags when split() is called with the TokenString output. SEMANTIC = 'semantic' #--- INSTALL SERVERS --------------------------------------------------------------------------------- MBSP.active_servers.append( MBSP.Server( name = 'biomedical_pos', port = 6065, process = MBSP.MBT, features = {'-s' : os.path.join(MODULE, 'models', 'GENIAPOS.settings'),})) # All the server options are bundled in a .settings file. MBSP.active_servers.append( MBSP.Server( name = 'biomedical_sem', port = 6066, process = MBSP.MBT, features = {'-s' : os.path.join(MODULE, 'models', 'GENIASEM.settings'),})) # All the server options are bundled in a .settings file. #--- EXTEND TAGGER/CHUNKER --------------------------------------------------------------------------- def update_pos_tag(tokenstring):