[package]
edition = "2021"
rust-version = "1.75"
name = "rishe"
version = "0.5.0"
authors = ["Mahdi Alikhah <96587315+MahdiAlikhah@users.noreply.github.com>"]
build = "build.rs"
exclude = [
".*",
"*.html",
"data/corpora/*",
"data/raw_*",
"docs/*",
"python/*",
"scripts/*",
"target/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rishe (ریشه): High-performance Persian NLP engine in Rust — tokenization, SBD, lemmatization, ezafe detection, informal→formal normalization, stemming, spell checking, embeddings"
homepage = "https://github.com/MahdiAlikhah/rishe"
documentation = "https://docs.rs/rishe"
readme = "README.md"
keywords = [
"nlp",
"persian",
"farsi",
"tokenization",
"lemmatization",
]
categories = [
"text-processing",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MahdiAlikhah/rishe"
[features]
default = []
models = [
"dep:tract",
"dep:tokenizers",
"dep:ndarray",
"dep:serde_json",
]
python = ["dep:pyo3"]
[lib]
name = "rishe"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bench]]
name = "tier1_bench"
path = "benches/tier1_bench.rs"
harness = false
[dependencies.aho-corasick]
version = "1.1"
[dependencies.fst]
version = "0.4"
[dependencies.ndarray]
version = "0.16"
optional = true
[dependencies.pyo3]
version = "0.22"
features = [
"extension-module",
"abi3-py39",
]
optional = true
[dependencies.rayon]
version = "1.10"
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.tokenizers]
version = "0.23"
features = ["unstable_wasm"]
optional = true
default-features = false
[dependencies.tract]
version = "0.23.9"
features = ["onnx"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[build-dependencies.fst]
version = "0.4"