9 releases
0.3.1 | Jan 21, 2021 |
---|---|
0.3.0 | Jan 17, 2021 |
0.2.0 | Nov 6, 2020 |
0.1.5 | Feb 25, 2020 |
0.1.3 | Jan 9, 2018 |
#1259 in Data structures
57 downloads per month
Used in 7 crates
(via crfsuite)
1MB
25K
SLoC
Contains (static library, 120KB) crfsuite/win32/liblbfgs/lbfgs.lib
crfsuite-rs
Rust binding to crfsuite
Installation
Add it to your Cargo.toml
:
[dependencies]
crfsuite = "0.3"
Add extern crate crfsuite
to your crate root and your're good to go!
Python package
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)
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
Dependencies
~160–530KB
~12K SLoC