[[bench]]
harness = false
name = "jieba_benchmark"
path = "benches/jieba_benchmark.rs"
required-features = ["tfidf", "textrank"]
[dependencies.cedarwood]
version = "0.4"
[dependencies.derive_builder]
optional = true
version = "0.20.0"
[dependencies.fxhash]
version = "0.2.1"
[dependencies.include-flate]
version = "0.3.0"
[dependencies.jieba-macros]
version = "0.7.1"
[dependencies.lazy_static]
version = "1.0"
[dependencies.ordered-float]
optional = true
version = "4.0"
[dependencies.phf]
version = "0.11"
[dependencies.regex]
version = "1.0"
[dev-dependencies.codspeed-criterion-compat]
version = "2.4.1"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.wasm-bindgen-test]
version = "0.3.0"
[features]
default = ["default-dict"]
default-dict = []
textrank = ["dep:ordered-float", "dep:derive_builder"]
tfidf = ["dep:ordered-float", "dep:derive_builder"]
[lib]
name = "jieba_rs"
path = "src/lib.rs"
[package]
authors = ["messense <messense@icloud.com>", "Paul Meng <me@paulme.ng>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["text-processing"]
description = "The Jieba Chinese Word Segmentation Implemented in Rust"
edition = "2021"
keywords = ["nlp", "chinese", "segmenation"]
license = "MIT"
name = "jieba-rs"
readme = "README.md"
repository = "https://github.com/messense/jieba-rs"
version = "0.7.1"
[package.metadata.docs.rs]
all-features = true
[target."cfg(unix)".dev-dependencies.jemallocator]
version = "0.5.0"
[[test]]
name = "test_wasm"
path = "tests/test_wasm.rs"