Docs.rs
narrative-graph-0.1.2
narrative-graph 0.1.2
Permalink
Docs.rs crate page
Apache-2.0
16 September 2026
Links
Homepage
Repository
crates.io
Source
Owners
dcondrey
Dependencies
anyhow ^1.0
normal
optional
clap ^4.4
normal
optional
napi ^3.9
normal
optional
napi-derive ^3.5
normal
optional
serde ^1.0
normal
optional
serde_json ^1.0
normal
optional
ts-rs ^12
normal
optional
napi-build ^2.2
build
optional
Versions
66.67%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module heuristic
narrative_
graph
0.1.2
Module heuristic
Module Items
Functions
In crate narrative_
graph
narrative_graph
Module
heuristic
Copy item path
Source
Functions
§
extract_
candidate_
triples
Extract candidate (subject, relation, object) triples from prose. Runs the heuristic pipeline: entity detection, relation labeling, co-occurrence scoring, and confidence calculation.
extract_
entities
Extract entities from a sentence using capitalization + pronoun linking + alias resolution.
normalize_
relation
Normalize a relation type against an optional caller-supplied ontology. If the relation is in the ontology map, return the mapped value; otherwise return as-is.