messense / crfsuite-rs

Rust binding to crfsuite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Rust binding to crfsuite

License:MIT License


Languages

Language:Rust 86.3%Language:Python 9.4%Language:C 2.4%Language:CMake 1.6%Language:Shell 0.3%