https://github.com/messense/crfs-rs
Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs)
https://github.com/messense/crfs-rs
crf crfsuite
Last synced: about 1 year ago
JSON representation
Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs)
- Host: GitHub
- URL: https://github.com/messense/crfs-rs
- Owner: messense
- License: mit
- Created: 2021-01-31T03:39:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T09:32:49.000Z (over 1 year ago)
- Last Synced: 2025-03-30T18:08:44.576Z (about 1 year ago)
- Topics: crf, crfsuite
- Language: Rust
- Homepage:
- Size: 77.1 KB
- Stars: 29
- Watchers: 4
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# crfs-rs
[](https://github.com/messense/crfs-rs/actions?query=workflow%3ACI)
[](https://codecov.io/gh/messense/crfs-rs)
[](https://crates.io/crates/crfs)
[](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.2"
```
## 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.