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