/python-crfsuite

A python binding for crfsuite

Primary LanguagePython

python-crfsuite

https://travis-ci.org/tpeng/python-crfsuite.svg?branch=master https://ci.appveyor.com/api/projects/status/github/tpeng/python-crfsuite?branch=master&svg=true

python-crfsuite is a python binding to CRFsuite.

Installation

pip install python-crfsuite

Usage

See docs and an example.

See Also

sklearn-crfsuite is a python-crfsuite wrapper which provides API similar to scikit-learn.

Contributing

Feel free to submit ideas, bugs reports, pull requests or regular patches.

In order to run tests, install Cython (> 0.20.1) and tox, then type

./update_cpp.sh; tox

from the source checkout.

Please don't commit generated cpp files in the same commit as other files.

Authors

Bundled CRFSuite C/C++ library is by Naoaki Okazaki & contributors.

License

python-crfsuite is licensed under MIT license. CRFsuite library is licensed under BSD license.

Alternatives

This package (python-crfsuite) wraps CRFsuite C++ API using Cython. It is faster than official SWIG wrapper and has a simpler codebase than a more advanced pyCRFsuite. python-crfsuite works in Python 2 and Python 3, doesn't have external dependencies (CRFsuite is bundled, numpy/scipy stack is not needed) and workarounds some of the issues with C++ CRFsuite library.