[package]
name = "ltp"
version = "0.1.9"
edition = "2021"
authors = ["ylfeng <ylfeng@ir.hit.edu.cn>"]
description = "Language Technology Platform For Rust."
homepage = "https://github.com/HIT-SCIR/ltp"
repository = "https://github.com/HIT-SCIR/ltp"
keywords = ["ltp", "nlp"]
exclude = [".github"]
readme = "README.md"
license-file = "LICENSE"
[[example]]
name = "cws"
path = "examples/cws.rs"
required-features = ["serialization", "parallel"]
[[example]]
name = "pos"
path = "examples/pos.rs"
required-features = ["serialization", "parallel"]
[[example]]
name = "ner"
path = "examples/ner.rs"
required-features = ["serialization", "parallel"]
[[example]]
name = "simple"
path = "examples/simple.rs"
required-features = ["serialization", "parallel"]
[dependencies]
anyhow = "1"
num-traits = "0.2"
itertools = "0.12"
cedarwood = "0.4"
smallvec = { version = "1" }
rand = { version = "0.8" }
binary-heap-plus = { version = "0.5" }
rayon = { version = "1.5", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
apache-avro = { version = "0.16.0", optional = true }
compact_str = { version = "0.7", optional = true }
rkyv = { version = "0.7", optional = true }
[features]
default = []
char-type = []
cross-char = []
near-char-type = []
parallel = ["rayon"]
serialization = ["serde", "serde_json", "apache-avro"]
[dev-dependencies]
clap = { version = "4", features = ["derive"] }
ndarray = "0.15"
ndarray-npy = { version = "0.8", features = ["npz"] }