English 中文(简体)
垃圾邮件和脏话语评论过滤/预防/锁定在 p(詹戈)
原标题:spam and dirty words comment post filtering/prevention/blocking in python (django)

我的基本问题是,如何防止在平坦(django)的评议后系统中出现间谍和 d脏的言辞。

我有几句话(约3 000个短语)被阻止。

我想做的是:

如果我发现在用户点击后纽特语时有过份数的评论,那么网络就应当发出警告信息,并要求人们重新加入/更正评论并再次提交。 这只是阻止人们提出rud/sp评论。

问题(1) 是否有任何现有的开放源码(或django)包/模块/插图可以处理这项工作? 我知道有人叫Akismet。 但是,根据我的理解,它不会解决我的问题。 Akismet只是一个网络服务,过滤了Akismet定义的词典。 但我有自己的话。 如果我错的话,请更正。

问题(2):如果没有这种开放源包,我可以使用,如何建立自己? 我认为,这是使用定期表达和加入所有字句和定期表达的唯一东西。 但是,我有3 000个短语,我认为,它从业绩方面赢得一定的工作,并过滤每个评论职位。 我应该从哪里开始提出建议?

非常感谢您的帮助和时间。

问题回答

您不妨查看PROFANITIES_LIST/a。 http://docs.djangoproject.com/en/1.2/ref/validators/#ref-validators” rel=“nofollow noretinger”>validators

虽然如此之多(3 000人)确实? 你必须站在各方一边,用你想重新思考的东西。 页: 1 你们应该放弃。 仅凭我的意见。 如果国家排雷中心有这样的意见,那么它为什么会保持下去? 这种评论是否增加了任何价值?





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签