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

对src/classification/aho_corasick.h的疑问 #16

Open
TVect opened this issue Jul 26, 2017 · 4 comments
Open

对src/classification/aho_corasick.h的疑问 #16

TVect opened this issue Jul 26, 2017 · 4 comments

Comments

@TVect
Copy link

TVect commented Jul 26, 2017

我使用aho_corasick.h进行测试

AhoCorasick ac_demo;
ac_demo.add("abc");
ac_demo.add("bc");
ac_demo.add("b");
ac_demo.make();
vector<pair<int, int>> ret;
ac_demo.search("abcx", ret);

只能匹配出abc和bc, 中间的b没有匹配出来
???

@nickyoungforu
Copy link

我之前也遇到了这个问题

@shangjingbo1226
Copy link
Owner

shangjingbo1226 commented Sep 4, 2017

谢谢反馈,等我有空了查一下。现在主要使用AutoPhrase。

@Melinda111
Copy link

为什么文本是中文,就挖不出来频繁集呢

@remenberl
Copy link
Collaborator

remenberl commented Jan 18, 2018

https://github.com/shangjingbo1226/AutoPhrase ? 这个天生支持中文

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

5 participants