Skip to main content

Crate mnem_ner_providers

Crate mnem_ner_providers 

Source
Expand description

NER provider adapters for mnem.

Ships two built-in providers:

  • RuleNer — capitalized-phrase heuristic (Person / Organization), zero dependencies, always available.
  • NullNer — no-op, emits nothing. Selected via [ner]\nprovider = "none".

The open factory constructs the right implementation from a NerConfig. Wire NerConfig into [mnem_ingest::IngestConfig] and call open during pipeline construction.

§Entity label strings

Entity labels are free-form strings — there is no closed vocabulary. Each NerProvider implementation returns whatever label strings it chooses (e.g. "Entity:Person", "Entity:Chemical", etc.). The mnem node graph stores the raw label string as the node’s ntype.

Re-exports§

pub use config::NerConfig;
pub use config::open;
pub use error::NerError;
pub use null::NullNer;
pub use provider::NamedEntity;
pub use provider::NerProvider;
pub use rule::RuleNer;

Modules§

config
NER provider configuration and open() factory.
error
Error types for the NER provider layer.
null
No-op NER provider. Used when [ner]\nprovider = "none" is configured.
provider
NerProvider trait and NamedEntity span type.
rule
Rule-based NER provider: capitalized-phrase heuristic for Person/Organization.