narrative-graph 0.1.2

Turn prose into candidate relational facts — entity detection, relation labeling, confidence scoring, entirely local.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.77"
name = "narrative-graph"
version = "0.1.2"
authors = ["WritersLogic, Inc. <david@writerslogic.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Turn prose into candidate relational facts — entity detection, relation labeling, confidence scoring, entirely local."
homepage = "https://github.com/writerslogic/narrative-graph"
documentation = "https://docs.rs/narrative-graph"
readme = "README.md"
keywords = [
    "nlp",
    "relation-extraction",
    "entity-extraction",
    "heuristics",
    "semantic",
]
categories = [
    "text-processing",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/writerslogic/narrative-graph"

[package.metadata.docs.rs]
features = [
    "json",
    "bindings",
]

[features]
bindings = [
    "serde",
    "dep:ts-rs",
]
cli = [
    "dep:clap",
    "dep:anyhow",
    "json",
]
default = []
json = [
    "serde",
    "dep:serde_json",
]
node-api = [
    "dep:napi",
    "dep:napi-derive",
    "dep:napi-build",
    "bindings",
    "json",
]
serde = ["dep:serde"]

[lib]
name = "narrative_graph"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "narrative-graph"
path = "src/bin/main.rs"
required-features = ["cli"]

[[example]]
name = "debug_extract"
path = "examples/debug_extract.rs"

[[example]]
name = "extract_and_memorize"
path = "examples/extract_and_memorize.rs"

[[example]]
name = "precision_sample"
path = "examples/precision_sample.rs"
required-features = ["json"]

[[test]]
name = "heuristic"
path = "tests/heuristic.rs"

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.clap]
version = "4.4"
features = ["derive"]
optional = true

[dependencies.napi]
version = "3.9"
features = [
    "async",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "3.5"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.ts-rs]
version = "12"
features = ["serde-compat"]
optional = true

[dev-dependencies]

[build-dependencies.napi-build]
version = "2.2"
optional = true

[profile.release]
opt-level = 3
lto = true
strip = true