segram.nlp.pipeline.annotator module
- class segram.nlp.pipeline.annotator.Annotator(vocab: ~spacy.vocab.Vocab, name: str = 'attribute_ruler', *, validate: bool = False, scorer: ~typing.Callable | None = <function attribute_ruler_score>)[source]
Bases:
AttributeRulerAnnotator class adding token flags used in semantic grammar analysis.
It is implemented as
spacy.pipeline.AttributeRulersubclass and uses standard token POS and DEP attributes to define a set of custom semantic grammar flags.