#crf #fields #conditional #random #port #crfsuite #pure

crfs

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

5 releases

0.2.0 Nov 18, 2021
0.1.3 Jan 31, 2021
0.1.2 Jan 31, 2021
0.1.1 Jan 31, 2021
0.1.0 Jan 31, 2021

#451 in Machine learning

Download history 12/week @ 2024-07-20 26/week @ 2024-07-27 16/week @ 2024-08-03 19/week @ 2024-08-10 9/week @ 2024-08-17 119/week @ 2024-08-24 30/week @ 2024-08-31 40/week @ 2024-09-07 26/week @ 2024-09-14 120/week @ 2024-09-21 57/week @ 2024-09-28 42/week @ 2024-10-05 57/week @ 2024-10-12 71/week @ 2024-10-19 76/week @ 2024-10-26 34/week @ 2024-11-02

242 downloads per month
Used in 7 crates (5 directly)

MIT license

31KB
725 lines

crfs-rs

CI codecov Crates.io docs.rs

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.

Installation

Add it to your Cargo.toml:

[dependencies]
crfs = "0.1"

Performance

Performance comparsion with CRFsuite on MacBook Pro (13-inch, M1, 2020) 16GB

$ 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 file.

Dependencies

~0.7–1.1MB
~20K SLoC