12 releases

0.3.1 Jan 21, 2021
0.3.0 Jan 17, 2021
0.2.8 Nov 6, 2020
0.2.7 Feb 24, 2020
0.1.1 Jan 10, 2018

#737 in Development tools

Download history 239/week @ 2022-08-04 245/week @ 2022-08-11 169/week @ 2022-08-18 264/week @ 2022-08-25 36/week @ 2022-09-01 97/week @ 2022-09-08 31/week @ 2022-09-15 25/week @ 2022-09-22 40/week @ 2022-09-29 44/week @ 2022-10-06 23/week @ 2022-10-13 18/week @ 2022-10-20 30/week @ 2022-10-27 80/week @ 2022-11-03 27/week @ 2022-11-10 37/week @ 2022-11-17

179 downloads per month
Used in 6 crates (3 directly)

MIT license

1MB
26K SLoC

C++ 14K SLoC // 0.0% comments C 8K SLoC // 0.2% comments Python 1.5K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments Visual Studio Project 438 SLoC Automake 102 SLoC // 0.1% comments Ruby 89 SLoC // 0.3% comments Perl 82 SLoC // 0.3% comments Shell 66 SLoC // 0.1% comments Visual Studio Solution 41 SLoC SWIG 37 SLoC

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

~155–380KB