kindred.bionlpst

Importer for BioNLP Shared Task data

Functions

kindred.bionlpst.listTasks()[source]

List the names of the BioNLP Shared Task datasets that can be loaded. These values can be passed to the kindred.bionlpst.load function as the taskName argument

Returns:List of valid taskNames
Return type:str
kindred.bionlpst.load(taskName, ignoreEntities=[])[source]

Download and load the corresponding corpus from the BioNLP Shared Task

Parameters:
  • taskName (str) – The name of the shared task to download (e.g. ‘BioNLP-ST-2016_BB-event_train’). Use kindred.bionlpst.listTasks() to get a list of valid options
  • ignoreEntities (list of str) – A list of any entities that should be ignored during loading
Returns:

The loaded corpus

Return type:

kindred.Corpus