unitoken 0.1.0

Fast BPE tokenizer/trainer with a Rust core and Python bindings
Documentation
[[bench]]
harness = false
name = "bpe"
path = "benches/bpe.rs"

[[bin]]
name = "unitoken"
path = "src/main.rs"

[dependencies.chrono]
version = "0.4.42"

[dependencies.clap]
features = ["derive"]
version = "4.5.53"

[dependencies.fancy-regex]
version = "0.16.2"

[dependencies.hotpath]
version = "0.8.0"

[dependencies.indicatif]
version = "0.18.3"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.memchr]
version = "2.7.6"

[dependencies.metrics]
version = "0.24.3"

[dependencies.moka]
features = ["sync"]
version = "0.12.11"

[dependencies.ndarray]
optional = true
version = "0.17.1"

[dependencies.npyz]
version = "0.8.4"

[dependencies.numpy]
optional = true
version = "0.27.1"

[dependencies.ordermap]
features = ["serde"]
version = "1.0.0"

[dependencies.pyo3]
features = ["experimental-inspect"]
optional = true
version = "0.27"

[dependencies.rayon]
version = "1.11.0"

[dependencies.rgb]
optional = true
version = "0.8.52"

[dependencies.serde]
features = ["derive"]
version = "1.0.228"

[dependencies.serde_json]
version = "1.0.145"

[dependencies.textplots]
optional = true
version = "0.8.7"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tracing]
version = "0.1.43"

[dependencies.tracing-subscriber]
version = "0.3.22"

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

[dev-dependencies.pyo3-introspection]
version = "0.27"

[features]
default = []
fmt-npz = ["npyz/npz"]
hotpath = ["hotpath/hotpath", "hotpath/hotpath-alloc"]
plot = ["dep:textplots", "dep:rgb"]
py = ["dep:pyo3", "dep:ndarray", "dep:numpy"]

[lib]
crate-type = ["cdylib", "rlib"]
name = "unitoken"
path = "src/lib.rs"

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["text-processing"]
description = "Fast BPE tokenizer/trainer with a Rust core and Python bindings"
edition = "2024"
exclude = [".venv/**", "dist/**", "out/**", "target/**", "fixtures/**", "!fixtures/default_special_tokens.txt", "flamegraph*.svg"]
keywords = ["tokenizer", "bpe", "nlp"]
license = "MIT"
name = "unitoken"
readme = "README.md"
repository = "https://github.com/a-gradient/unitoken"
version = "0.1.0"

[profile.dev.package."*"]
opt-level = 2

[profile.release]
debug = "line-tables-only"

[profile.test]
debug = 2
inherits = "release"