# crfs-rs [![CI](https://github.com/messense/crfs-rs/workflows/CI/badge.svg)](https://github.com/messense/crfs-rs/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/messense/crfs-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/messense/crfs-rs) [![Crates.io](https://img.shields.io/crates/v/crfs.svg)](https://crates.io/crates/crfs) [![docs.rs](https://docs.rs/crfs/badge.svg)](https://docs.rs/crfs/) Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs) **Currently only support prediction, model training is not supported.** For training you can use [crfsuite-rs](https://github.com/messense/crfsuite-rs). ## Installation Add it to your ``Cargo.toml``: ```toml [dependencies] crfs = "0.1" ``` ## Performance Performance comparsion with CRFsuite on MacBook Pro (13-inch, M1, 2020) 16GB ```bash $ cargo bench --bench crf_bench -- --output-format bencher test tag/crfs ... bench: 1449 ns/iter (+/- 5) test tag/crfsuite ... bench: 2154 ns/iter (+/- 14) ``` Last updated on 2021-11-18. ## License This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.