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

关于设置self::$handle->setTree($paths); #36

Open
xiahe-debug opened this issue Jun 29, 2022 · 2 comments
Open

关于设置self::$handle->setTree($paths); #36

xiahe-debug opened this issue Jun 29, 2022 · 2 comments

Comments

@xiahe-debug
Copy link

请问,是否可以设分别设置敏感词树、停用词树、以及黑名单

@FireLustre
Copy link
Owner

不好意思,目前对单个过滤的实例只能初始化一个词库,如果需要对不同的词库进行匹配(过滤),可以试试是否可以通过初始化多个实例

@hepeichun
Copy link

请问,是否可以设分别设置敏感词树、停用词树、以及黑名单

$handle1 = new SensitiveHelper();
$handle1->setTree($wordData1);

$handle2 = new SensitiveHelper();
$handle2->setTree($wordData2);

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

3 participants