-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
37 lines (32 loc) · 1.33 KB
/
Copy pathCargo.toml
File metadata and controls
37 lines (32 loc) · 1.33 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
[package]
name = "text-processing-rs"
version = "0.3.0"
edition = "2021"
license = "Apache-2.0"
description = "Inverse Text Normalization (ITN) — convert spoken-form ASR output to written form"
repository = "https://github.com/FluidInference/text-processing-rs"
keywords = ["asr", "speech", "normalization", "nlp", "itn"]
categories = ["text-processing"]
[lib]
crate-type = ["lib", "staticlib", "cdylib"]
[dependencies]
lazy_static = "1"
wasm-bindgen = { version = "0.2", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
# Optional: byte-exact NeMo parity via compiled weighted FST grammars.
# Off by default — the pure-Rust rule path carries no rustfst/OpenFST weight.
rustfst = { version = "1.3.1", optional = true }
flate2 = { version = "1", optional = true }
[dev-dependencies]
proptest = "1"
[features]
default = []
ffi = [] # Enable C FFI bindings
wasm = ["dep:wasm-bindgen", "dep:console_error_panic_hook"]
# Byte-exact NeMo parity engine (runs NeMo's compiled grammars via rustfst).
# Adds rustfst + flate2 and ~7 MB of gzipped grammars (all languages combined).
fst-engine = ["dep:rustfst", "dep:flate2"]
# Skip wasm-opt: wasm-pack's binaryen download is a recurring CI flake, and the
# published bundle does not need the size optimization for our use.
[package.metadata.wasm-pack.profile.release]
wasm-opt = false