开发者

C# Spam Filter suggestions [closed]

开发者 https://www.devze.com 2023-01-19 05:29 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_如何学Go

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Any idea (example) of spam filter implementation in C#? I would like to use a database to store unwanted words, to train my spam filter.

Thanks.


Patterns are more important than words (barring "#FF0000", you can be pretty much 100% confident that anything sent as an HTML mail will "#FF0000" in it is not worth reading). Take a look at http://en.wikipedia.org/wiki/Bayesian_spam_filtering and the references it has for one approach (IIRC, one of the first experiments with technique found that after training the filter, "#FF0000" was the expression most likely to indicate Spam, see I told you so).


You may want to check out Paul Graham spam filtering article You can also have a look at C# implementation of spam filter using Naive Bayes Classifier


Here is the trivial hand-made spam filter based on word blacklist: LINQ Query for Blacklist-Based Spam Filter

This solution is applicable when you don't find motivation to add libraries or complicated custom solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消