rwer 0.2.2

A fast Rust crate for WER, CER, and related ASR evaluation metrics
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "rwer"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast Rust crate for WER, CER, and related ASR evaluation metrics"
readme = "README.md"
keywords = [
    "wer",
    "cer",
    "asr",
    "nlp",
]
categories = [
    "text-processing",
    "science",
]
license = "MIT"
repository = "https://github.com/ryaningli/rwer"

[features]
chinese-variant = ["dep:zhconv"]
cli = [
    "dep:clap",
    "dep:serde",
    "dep:serde_json",
]
default = []

[lib]
name = "rwer"
path = "src/lib.rs"

[[bin]]
name = "rwer"
path = "src/bin/rwer.rs"
required-features = ["cli"]

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[test]]
name = "integration_cer"
path = "tests/integration_cer.rs"

[[test]]
name = "integration_chinese_variant"
path = "tests/integration_chinese_variant.rs"

[[test]]
name = "integration_metrics"
path = "tests/integration_metrics.rs"

[[test]]
name = "integration_transform"
path = "tests/integration_transform.rs"

[[test]]
name = "integration_wer"
path = "tests/integration_wer.rs"

[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.rapidfuzz]
version = "0.5"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.unicode-segmentation]
version = "1.13"

[dependencies.zhconv]
version = "0.4"
features = ["opencc"]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.rstest]
version = "0.26"

[profile.test]
opt-level = 1