如何实现体面的“坏词过滤器"? [英] How to implement decent "bad word filter"?

查看:101
本文介绍了如何实现体面的“坏词过滤器"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建良好的不良单词聊天过滤器?例如,让用户不要键入Poop并向他们发送警告.

How can I create the good bad word chat filter? For example, let users not type Poop and send them warning.

但是它也应该过滤pooopppp,P00p,Po0p,P0o0o0op,(或他们尝试使用的任何技巧)等.

However it should also filter pooopppp , P00p, Po0p, P0o0o0op, (or whatever trick they try to use) etc.

推荐答案

您应该实施一些机器学习对此进行过滤.我建议这样做: Google Tensorflow .

You should implement some Machine Learning to filter that. I recommend this : Google Tensorflow.

您应该做的是创建张量流引擎,使用诸如Poop,P0op,Po0pp等坏词训练它们,经过几次训练后,引擎将能够判断出Po0000p被视为坏词.

What you should do is to create the tensorflow engine, train them with bad words eg : Poop, P0op, Po0pp, etc... and after several training the engine will able to tell that Po0000p considered as bad word.

尽管机器学习可能需要陡峭的学习曲线,但是您可以按照> https上的指南进行操作: //developers.google.com/machine-learning/crash-course/.

While Machine Learning might need steep learning curve, you can follow the tutorial at https://developers.google.com/machine-learning/crash-course/.

这篇关于如何实现体面的“坏词过滤器"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆