Crates.io | crfsuite |
lib.rs | crfsuite |
version | 0.3.1 |
source | src |
created_at | 2018-01-09 05:24:42.216027 |
updated_at | 2021-01-21 12:01:19.742842 |
description | Safe wrapper of crfsuite |
homepage | |
repository | https://github.com/bosondata/crfsuite-rs |
max_upload_size | |
id | 46066 |
size | 71,929 |
Rust binding to crfsuite
Add it to your Cargo.toml
:
[dependencies]
crfsuite = "0.3"
Add extern crate crfsuite
to your crate root and your're good to go!
There is also a Python package named crfsuite
, you can install it via pip
:
pip install -U crfsuite
Usage example:
from crfsuite import Model
if __name__ == '__main__':
model = Model('path/to/crfsuite/model.crf')
tagged = model.tag(["abc", "def"])
print(tagged)
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.