[package] name = "nnsplit" version = "0.5.9" authors = ["Benjamin Minixhofer "] edition = "2018" description = "A tool to split text using a neural network. For sentence boundary detection, compound splitting and more." repository = "https://github.com/bminixhofer/nnsplit" homepage = "https://bminixhofer.github.io/nnsplit" documentation = "https://docs.rs/nnsplit/" keywords = ["pytorch", "deep-learning", "machine-learning", "tokenizer", "sentencizer"] categories = ["text-processing", "science"] license = "MIT" readme = "README.md" include = ["src/*.rs", "tests/*.rs", "build.rs", "data", "models.csv"] [dependencies] ndarray = "0.15" thiserror = "1.0" lazy_static = "1.4" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" tract-onnx = { version = "0.15.2", optional = true } directories = {version = "3.0.1", optional = true} minreq = {version = "2.2.1", features = ["https"], optional = true} url = {version = "2.2.0", optional = true} [dev-dependencies] serde_json = "1.0" quickcheck_macros = "1.0" quickcheck = "1.0" rand = "0.8" [features] default = [] tract-backend = ["tract-onnx"] model-loader = ["directories", "minreq", "url"] [[example]] path = "examples/benchmark.rs" # somehow `cargo package` doesn't work without explicitly setting path name = "benchmark" required-features = ["tract-backend", "model-loader"] [[example]] path = "examples/cli.rs" # somehow `cargo package` doesn't work without explicitly setting path name = "cli" required-features = ["tract-backend", "model-loader"] [package.metadata.docs.rs] all-features = true