sensitive-word-filter:敏感词匹配

上传者: 42116713 | 上传时间: 2022-05-03 13:17:51 | 文件大小: 48KB | 文件类型: ZIP
sensitive-word-filter     该项目作为一个敏感词检测工具,具有敏感词获取、敏感词处理、敏感词替换等基本功能,还支持用户自己实现对应的敏感词获取器 和 敏感词解析器实现一些自定义的功能。 实现原理     底层的实现原理采取的是AC自动机算法,AC自动机是在KMP算法和字典树上演变出来的一种多模匹配的算法。时间复杂度只取决于待分析文本的长度,和敏感词的数量无关。     有兴趣的小伙伴可以阅读关于KMP 和 AC自动机相关的文档或者博客,相信你会收益颇丰 jar包下载 代码示例 // 1.word.txt 敏感词不完善 SensitiveWordFilter sensitiveWordFilter = new SensitiveWordFilter(); // 普通字符替换 System.out.println(sensitiveWordFilter.replaceF

文件下载

资源详情

[{"title":"( 21 个子文件 48KB ) sensitive-word-filter:敏感词匹配","children":[{"title":"sensitive-word-filter-master","children":[{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"WordTest.java <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"MainTest.java <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"word.txt <span style='color:#111;'> 15.04KB </span>","children":null,"spread":false},{"title":"stop.txt <span style='color:#111;'> 137B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"chaser","children":[{"title":"utils","children":[{"title":"Converter.java <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"Node.java <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"SensitiveWord.java <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"PositionNode.java <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"plugin","children":[{"title":"Fragment.java <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"Processor.java <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"Resource.java <span style='color:#111;'> 452B </span>","children":null,"spread":false}],"spread":true},{"title":"engine","children":[{"title":"ModeType.java <span style='color:#111;'> 299B </span>","children":null,"spread":false},{"title":"WordFinder.java <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"IgnoreFinder.java <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"ReplaceFragment.java <span style='color:#111;'> 657B </span>","children":null,"spread":false},{"title":"FileResource.java <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"HtmlFragment.java <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"SensitiveWordFilter.java <span style='color:#111;'> 11.89KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"doc","children":[{"title":"sensitive-word-filter-1.0.0.jar <span style='color:#111;'> 24.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明