Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有python封装吗 #46

Open
SeekPoint opened this issue Jan 3, 2021 · 1 comment
Open

有python封装吗 #46

SeekPoint opened this issue Jan 3, 2021 · 1 comment

Comments

@SeekPoint
Copy link

No description provided.

@NintendoLink
Copy link

ahocorasick有python版本,底层是用的C实现的,python环境可以一键安装。
但python ahocorasick 在字典数量很大(>1 * 10^9)的情况下,会极大的占用内存。并且由于GIL的存在,Python无法原生的实现多线程共享单个模型。只能修改成多进程+共享变量的方式,但会带来较大的性能损失。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants