yankewei / laravel-sensitive Goto Github PK
View Code? Open in Web Editor NEW过滤敏感词汇的laravel包,使用DFA算法
过滤敏感词汇的laravel包,使用DFA算法
【问题】:
把 = 0 删掉,才能算基本正常。
否则连基本的严格匹配都做不到
【延展】:
我觉得
1.敏感词光有一个词典还是不够的,还要有排除的字典,比入屌和丝一起出现,就不用管
2.在tree匹配到单字还要看后面一个字是否能在字典里严格匹配,比如 "我是"这种竟然也会算为敏感
3.还有同音字,如果能转拼音,然后联想同音字更好
当然,越说越复杂,实现起来需要的精力也越多,随便说说,2333
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.