orkgnlp.common.service.base.ORKGNLPBaseRunner
- class ORKGNLPBaseRunner(model)[source]
Bases:
EnforceOverrides
,PipelineExecutorComponent
The ORKGNLPBaseRunner is the base runner class. It requires a model object while initialization. This runner must be inherited and the run(*args, **kwargs) must be overridden, thus running this runner raises an
NotImplementedError
.- Parameters
model (Model object. See the inheriting classes for further information.) – The model to be run.
Methods
Releases the memory of all available attributes in a pipeline component.
- raise
NotImplementedError
- release_memory()
Releases the memory of all available attributes in a pipeline component.