Rust binding to crfsuite
Add it to your Cargo.toml
:
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
:
bash
pip install -U crfsuite
Usage example:
```python 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.