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

Download history 12/week @ 2024-07-20 19/week @ 2024-07-27 15/week @ 2024-08-03 12/week @ 2024-08-10 9/week @ 2024-08-17 13/week @ 2024-08-24 19/week @ 2024-08-31 11/week @ 2024-09-07 8/week @ 2024-09-14 25/week @ 2024-09-21 31/week @ 2024-09-28 3/week @ 2024-10-05 24/week @ 2024-10-12 7/week @ 2024-10-19 10/week @ 2024-10-26 16/week @ 2024-11-02

57 downloads per month
Used in 7 crates (via crfsuite)

MIT license

1MB
25K SLoC

C++ 14K SLoC // 0.0% comments C 8K SLoC // 0.2% comments Python 1.5K SLoC // 0.1% comments Rust 473 SLoC // 0.0% comments Visual Studio Project 439 SLoC Automake 103 SLoC // 0.1% comments Ruby 90 SLoC // 0.3% comments Perl 83 SLoC // 0.3% comments Shell 58 SLoC // 0.1% comments Visual Studio Solution 42 SLoC SWIG 38 SLoC

Contains (static library, 120KB) crfsuite/win32/liblbfgs/lbfgs.lib

crfsuite-rs

Rust Python codecov Crates.io docs.rs PyPI

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