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.
Add it to your Cargo.toml
:
[dependencies]
crfs = "0.1"
Performance comparsion with CRFsuite on MacBook Pro (13-inch, M1, 2020) 16GB
$ cargo bench --bench crf_bench -- --output-format bencher
test tag/crfs ... bench: 2084 ns/iter (+/- 6)
test tag/crfsuite ... bench: 2957 ns/iter (+/- 9)
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.