https://github.com/messense/crfsuite-rs
Rust binding to crfsuite
https://github.com/messense/crfsuite-rs
crf crfsuite ffi rust-ffi
Last synced: 6 months ago
JSON representation
Rust binding to crfsuite
- Host: GitHub
- URL: https://github.com/messense/crfsuite-rs
- Owner: messense
- License: mit
- Created: 2018-01-05T07:58:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-03T02:52:30.000Z (over 4 years ago)
- Last Synced: 2024-05-02T00:55:14.320Z (about 2 years ago)
- Topics: crf, crfsuite, ffi, rust-ffi
- Language: Rust
- Size: 168 KB
- Stars: 23
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crfsuite-rs
[](https://github.com/messense/crfsuite-rs/actions?query=workflow%3ARust)
[](https://github.com/messense/crfsuite-rs/actions?query=workflow%3APython)
[](https://codecov.io/gh/messense/crfsuite-rs)
[](https://crates.io/crates/crfsuite)
[](https://docs.rs/crfsuite/)
[](https://pypi.org/project/crfsuite)
Rust binding to [crfsuite](https://github.com/chokkan/crfsuite)
## Installation
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!
## Python package
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)
```
## License
This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.