crfsuite的python绑定
python-crfsuite的Python项目详细描述
python crfsuite是绑定到CRFsuite的python。
安装
使用pip:
pip install python-crfsuite
使用conda:
conda install -c conda-forge python-crfsuite
另请参见
sklearn-crfsuite是一个python crfsuite包装器,它提供 类似于scikit learn的api。
贡献
- 源代码:https://github.com/scrapinghub/python-crfsuite
- 问题跟踪器:https://github.com/scrapinghub/python-crfsuite/issues
随时提交想法,错误报告,拉请求或定期补丁。
要运行测试,请安装Cython(>;0.24.1)和tox,然后键入
./update_cpp.sh; tox
从源签出。
请不要在与其他文件相同的提交中提交生成的cpp文件。
许可证
python crfsuite是在mit许可下授权的。 CRFsuite库是根据bsd许可证授权的。
备选方案
- https://github.com/chokkan/crfsuite/tree/master/swig/python-官方 Python包装器,使用SWIG公开C++ API。
此包(Python CRFSu套)使用Cython封装CRFSub C++ API。 它比官方的swig包装器更快,代码库也比 一个更高级的肾盂导管。python crfsuite在python 2和python 3中工作, 没有外部依赖项(crfsuite是绑定的,numpy/scipy堆栈 是不需要的)和解决方案的一些问题,用C++库。