[package]
edition = "2024"
rust-version = "1.88"
name = "lindera"
version = "6.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A morphological analysis library."
homepage = "https://github.com/lindera/lindera"
documentation = "https://docs.rs/lindera"
readme = "README.md"
keywords = [
"morphological",
"analysis",
"library",
]
categories = ["text-processing"]
license = "MIT"
repository = "https://github.com/lindera/lindera"
resolver = "2"
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
ctxfreq = ["lindera-dictionary/ctxfreq"]
default = ["mmap"]
embed-cc-cedict = ["lindera-cc-cedict/embed-cc-cedict"]
embed-cjk = [
"embed-ipadic",
"embed-ko-dic",
"embed-jieba",
]
embed-cjk2 = [
"embed-unidic",
"embed-ko-dic",
"embed-jieba",
]
embed-cjk3 = [
"embed-ipadic-neologd",
"embed-ko-dic",
"embed-jieba",
]
embed-cjk4 = [
"embed-sudachidict",
"embed-ko-dic",
"embed-jieba",
]
embed-ipadic = ["lindera-ipadic/embed-ipadic"]
embed-ipadic-neologd = ["lindera-ipadic-neologd/embed-ipadic-neologd"]
embed-jieba = ["lindera-jieba/embed-jieba"]
embed-ko-dic = ["lindera-ko-dic/embed-ko-dic"]
embed-sudachidict = ["lindera-sudachidict/embed-sudachidict"]
embed-unidic = ["lindera-unidic/embed-unidic"]
mmap = ["lindera-dictionary/mmap"]
train = ["dep:lindera-trainer"]
[lib]
name = "lindera"
path = "src/lib.rs"
[[example]]
name = "ctxfreq_dump"
path = "examples/ctxfreq_dump.rs"
[[example]]
name = "segment"
path = "examples/segment.rs"
[[test]]
name = "embedded_zero_copy_matrix"
path = "tests/embedded_zero_copy_matrix.rs"
[[test]]
name = "golden_tokenization"
path = "tests/golden_tokenization.rs"
[[test]]
name = "lattice_reuse_across_dictionaries"
path = "tests/lattice_reuse_across_dictionaries.rs"
[[test]]
name = "mmap_dictionary_loading"
path = "tests/mmap_dictionary_loading.rs"
[[test]]
name = "user_dictionary_context_id_remap"
path = "tests/user_dictionary_context_id_remap.rs"
[[bench]]
name = "bench_cc_cedict"
path = "benches/bench_cc_cedict.rs"
harness = false
required-features = ["embed-cc-cedict"]
[[bench]]
name = "bench_ipadic"
path = "benches/bench_ipadic.rs"
harness = false
required-features = ["embed-ipadic"]
[[bench]]
name = "bench_ipadic_neologd"
path = "benches/bench_ipadic_neologd.rs"
harness = false
required-features = ["embed-ipadic-neologd"]
[[bench]]
name = "bench_jieba"
path = "benches/bench_jieba.rs"
harness = false
required-features = ["embed-jieba"]
[[bench]]
name = "bench_ko_dic"
path = "benches/bench_ko_dic.rs"
harness = false
required-features = ["embed-ko-dic"]
[[bench]]
name = "bench_sudachidict"
path = "benches/bench_sudachidict.rs"
harness = false
required-features = ["embed-sudachidict"]
[[bench]]
name = "bench_unidic"
path = "benches/bench_unidic.rs"
harness = false
required-features = ["embed-unidic"]
[dependencies.anyhow]
version = "1.0.104"
[dependencies.lindera-cc-cedict]
version = "6.2.0"
optional = true
[dependencies.lindera-dictionary]
version = "6.2.0"
[dependencies.lindera-ipadic]
version = "6.2.0"
optional = true
[dependencies.lindera-ipadic-neologd]
version = "6.2.0"
optional = true
[dependencies.lindera-jieba]
version = "6.2.0"
optional = true
[dependencies.lindera-ko-dic]
version = "6.2.0"
optional = true
[dependencies.lindera-sudachidict]
version = "6.2.0"
optional = true
[dependencies.lindera-trainer]
version = "6.2.0"
optional = true
[dependencies.lindera-unidic]
version = "6.2.0"
optional = true
[dependencies.log]
version = "0.4.33"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.strum]
version = "0.28.0"
features = ["derive"]
[dependencies.strum_macros]
version = "0.28.0"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
default-features = false
[dev-dependencies.insta]
version = "1.48.0"
[dev-dependencies.once_cell]
version = "1.21.4"
[dev-dependencies.serde_json]
version = "1.0.151"
[dev-dependencies.tempfile]
version = "3.27.0"