crfs 0.3.0

Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs)
Documentation

crfs-rs

CI codecov Crates.io docs.rs

Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs)

Installation

Add it to your Cargo.toml:

[dependencies]
crfs = "0.2"

Performance

Performance comparsion with CRFsuite on MacBook Pro (13-inch, M4 MAX, 2024)

$ cargo bench --bench crf_bench -- --output-format bencher
test tag/crfs ... bench:         579 ns/iter (+/- 15)
test tag/crfsuite ... bench:        1185 ns/iter (+/- 20)

Last updated on 2026-02-01.

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.