12 个版本

0.3.1 2021年1月21日
0.3.0 2021年1月17日
0.2.8 2020年11月6日
0.2.7 2020年2月24日
0.1.1 2018年1月10日

#704 in 算法

45 次月下载
用于 6 个包 (3 直接)

MIT 许可证

1.5MB
26K SLoC

C++ 14K SLoC // 0.0% comments · Rust 包仓库 C 8K SLoC // 0.2% comments · Rust 包仓库 Python 1.5K SLoC // 0.1% comments · Rust 包仓库 Rust 1.5K SLoC // 0.0% comments · Rust 包仓库 Visual Studio Project 438 SLoC · Rust 包仓库 Automake 102 SLoC // 0.1% comments · Rust 包仓库 Ruby 89 SLoC // 0.3% comments · Rust 包仓库 Perl 82 SLoC // 0.3% comments · Rust 包仓库 Shell 66 SLoC // 0.1% comments · Rust 包仓库 Visual Studio Solution 41 SLoC · Rust 包仓库 SWIG 37 SLoC · Rust 包仓库

crfsuite-rs

Rust Python codecov Crates.io docs.rs PyPI

Rust 到 crfsuite 的绑定

安装

将其添加到您的 Cargo.toml

[dependencies]
crfsuite = "0.3"

extern crate crfsuite 添加到您的包根目录,然后就可以使用了!

Python 包

还有一个名为 crfsuite 的 Python 包,您可以通过 pip 安装它

pip install -U crfsuite

使用示例

from crfsuite import Model

if __name__ == '__main__':
    model = Model('path/to/crfsuite/model.crf')
    tagged = model.tag(["abc", "def"])
    print(tagged)

许可证

此作品根据 MIT 许可证发布。许可证副本在 LICENSE 文件中提供。

依赖项

~160–425KB