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

AC自动机BUG(acpro),敏感词屏蔽失效。 #172

Open
kenan131 opened this issue May 14, 2024 · 1 comment
Open

AC自动机BUG(acpro),敏感词屏蔽失效。 #172

kenan131 opened this issue May 14, 2024 · 1 comment

Comments

@kenan131
Copy link

kenan131 commented May 14, 2024

问题描述:ACProFilter类敏感词屏蔽功能BUG。
测试用例:
@test
public void ACPro()
{
List sensitiveList = Arrays.asList("白痴", "白痴吗你是");
ACProFilter acProFilter=new ACProFilter();
acProFilter.loadWord(sensitiveList);
System.out.println(acProFilter.filter("白痴吗你是白痴"));
}
测试结果:*****白痴
后面的白痴没有被屏蔽掉。

@kenan131
Copy link
Author

#173 已提交pr

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

1 participant