Cargo Features

vaporetto = { version = "0.6.3", default-features = false, features = ["alloc", "std", "cache-type-score", "fix-weight-length", "tag-prediction", "charwise-pma", "kytea", "train", "portable-simd"] }
default = cache-type-score, charwise-pma, fix-weight-length, std, tag-prediction

These default features are set whenever vaporetto is added without default-features = false somewhere in the dependency tree.

alloc cache-type-score charwise-pma fix-weight-length std tag-prediction

default: on

std default kytea? train? = alloc

Enables std of bincode


cache-type-score default = alloc
fix-weight-length default portable-simd? = alloc

Affects predictor::I32Simd, utils::trim_end_zeros, predictor::I32Simd

tag-prediction default = alloc

Affects predictor::PositionalWeightWithTag

charwise-pma default = alloc
kytea = std

Affects utils::read_u8, utils::read_u16, utils::read_i16, utils::read_u32, utils::read_i32, utils::read_f64

train = liblinear, std
portable-simd = fix-weight-length

Affects predictor::I32Simd

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

liblinear train?

Enables liblinear