Package TEES :: Module classify
[hide private]

Module classify

source code

Detect events or relations from text.

Functions [hide private]
 
classify(input, model, output, workDir=None, step=None, omitSteps=None, goldInput=None, detector=None, debug=False, clear=False, preprocessorTag='-preprocessed.xml.gz', preprocessorParams=None, bioNLPSTParams=None)
Detect events or relations from text.
source code
 
getModel(model) source code
 
getInput(input, model=None) source code
 
getPubMed(pmid) source code
Variables [hide private]
  __package__ = 'TEES'
Function Details [hide private]

classify(input, model, output, workDir=None, step=None, omitSteps=None, goldInput=None, detector=None, debug=False, clear=False, preprocessorTag='-preprocessed.xml.gz', preprocessorParams=None, bioNLPSTParams=None)

source code 

Detect events or relations from text.

Parameters:
  • input - The input file in either interaction XML or BioNLP ST format. Can also be a PMID or TEES default corpus name.
  • model - A path to a model file or the name of a TEES default model.
  • output - The output file stem. Output files will be of the form output-*
  • workDir - If intermediate files need to be saved, they will go here.
  • step - A step=substep pair, where the steps are PREPROCESS and CLASSIFY
  • omitSteps - step=substep parameters, where multiple substeps can be defined.
  • goldInput - a version of the corpus file with gold annotation. Enables measuring of performance
  • detector - a Detector object, or a string defining one to be imported. If None, will be read from model.
  • debug - In debug mode, more output is shown, and some temporary intermediate files are saved
  • clear - Remove existing workDir
  • preprocessorTag - preprocessor output file will be output + preprocessorTag
  • preprocessorParams - Optional parameters controlling preprocessing. If None, will be read from model.
  • bioNLPSTParams - Optional parameters controlling BioNLP ST format output. If None, will be read from model.