kazu.steps.ner.spacy_ner¶
Classes
A simple spacy NER implementation. |
- class kazu.steps.ner.spacy_ner.SpacyNerStep[source]¶
Bases:
Step
A simple spacy NER implementation.
Runs a spacy pipeline over document sections, expecting the resulting spacy doc to have a populated doc.ents field.
- __call__(doc)[source]¶
Process documents and respond with processed and failed documents.
Note that many steps will be decorated by
document_iterating_step()
ordocument_batch_step()
which will modify the ‘original’__call__
function signature to match the expected signature for a step, as the decorators handle the exception/failed documents logic for you.