pixano_inference.models.ner
NER (Named Entity Recognition) model base class.
The I/O types live in :mod:pixano_inference.schemas.ner and are re-exported here so
from pixano_inference.models.ner import NERInput keeps working.
NERModel(config)
Bases: InferenceModel[NERInput, NEROutput]
Base class for named entity recognition models.
predict receives a :class:NERInput (the text to analyse) and returns a :class:NEROutput
(the recognised entities). The interface property, when overridden, returns a
:class:NERInterface: the entity types the model can return.