Task
Base class for tasks
Last updated
Base class for tasks
Last updated
Subclass of .
Main methods and properties
predictor ([Any, Any]): Predictor that will be used in task.
preprocess (Optional[], optional): Component executed before predictor.
postprocess (Optional[], optional): Component executed after predictor.
input_class (Type[]): Class for input validation.
output_class (Type[]): Class for output validation.
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
Execute chain of actions
Task main logic. Executes preprocess, than executes predictor, after that executes postprocess and returns result.
Dict[str, Any]: Result of execution.
state (): Current data.
component (Optional[]): Component.
evaluator (): Evaluator in context of which executed.
: Result of execution.
input_data (): Validated input data.
evaluator (): Evaluator in context of which executed.
Task that expected to have entities like objects as result. Subclass of Task. Type of Task[, ].
Type variable bounded to .
Base class for output validation of NER tasks. Subclass of .
output (List[]): List of entities.