houbb / sensitive-word

👮‍♂️The sensitive word tool for java.(敏感词/违禁词/违法词/脏词。基于 DFA 算法实现的高性能 java 敏感词过滤工具框架。请勿发布涉及政治、广告、营销、翻墙、违反国家法律法规等内容。高性能敏感词检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。)
https://houbb.github.io/opensource/sensitive-word
Apache License 2.0
4.1k stars 545 forks source link

能否同时判别多个词存在的情况 #42

Closed shanty1 closed 7 months ago

shanty1 commented 8 months ago

能判别多个词同时存在的情况吗, 比如“死人 刺杀”, 同时存在才算文本敏感。

houbb commented 8 months ago

那应该把这个词作为一个自定义敏感词。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Amor @.> 发送时间: 2023年12月25日 15:02 收件人: houbb/sensitive-word @.> 抄送: Subscribed @.***> 主题: Re: [houbb/sensitive-word] 能否同时判别多个词存在的情况 (Issue #42)

能判别多个词同时存在的情况吗, 比如“死人 刺杀”, 同时存在才算文本敏感。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

houbb commented 8 months ago

或者自己添加策略,获取所有敏感词,然后判断是否同时存在你说的多个。

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Amor @.> 发送时间: 2023年12月25日 15:02 收件人: houbb/sensitive-word @.> 抄送: Subscribed @.***> 主题: Re: [houbb/sensitive-word] 能否同时判别多个词存在的情况 (Issue #42)

能判别多个词同时存在的情况吗, 比如“死人 刺杀”, 同时存在才算文本敏感。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>