-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (60 loc) · 1.54 KB
/
Cargo.toml
File metadata and controls
67 lines (60 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "nlpo3"
version = "2.0.0"
edition = "2024"
rust-version = "1.88.0"
license = "Apache-2.0"
authors = ["Thanathip Suntorntip Gorlph", "Arthit Suriyawongkul"]
description = "nlpO3 Thai natural language processing library, with Python and Node bindings"
categories = ["text-processing"]
keywords = [
"thai",
"tokenizer",
"nlp",
"text-processing",
"pythainlp",
]
homepage = "https://github.com/PyThaiNLP/nlpo3/"
repository = "https://github.com/PyThaiNLP/nlpo3/"
documentation = "https://docs.rs/nlpo3"
readme = "README.md"
include = [
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
"/CITATION.cff",
"/src/**",
"/model/deepcut.onnx",
]
[features]
deepcut = ["dep:tract-onnx", "dep:ndarray"]
[profile.release]
lto = true
codegen-units = 1
[lib]
path = "src/lib.rs"
# "cdylib" is necessary to produce a shared library for Python to import from.
# Downstream Rust code (including code in `bin/`, `examples/`, and `tests/`) will not be able
# to `use string_sum;` unless the "rlib" or "lib" crate type is also included.
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1.0"
binary-heap-plus = "0.5"
fst = "0.4.7"
lazy_static = "1.5"
rayon = "1.11"
regex = "1.12"
rustc-hash = "2.1"
ndarray = { version = "0.16", optional = true }
tract-onnx = { version = "0.22", optional = true }
[dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
[[bench]]
name = "tokenizer"
harness = false
[[test]]
name = "basic"
path = "tests/test_tokenizer.rs"
test = true