src.dackar.RCA.ner.hybrid_ner.disambiguation

Classes

RuleDisambiguator

Optional rule-based disambiguation stage.

Module Contents

class src.dackar.RCA.ner.hybrid_ner.disambiguation.RuleDisambiguator[source]

Optional rule-based disambiguation stage.

Use this to:
  • adjust hypothesis scores based on context (guardrails)

  • remove hypotheses that are clearly wrong in context

  • add additional hypotheses based on syntactic cues

v0.1: no-op placeholder to keep pipeline stable and swappable.

apply(doc, candidates, schema)[source]
Parameters:
Return type:

List[src.dackar.RCA.ner.hybrid_ner.models.CandidateSpan]