我正在创建一个网站,用户可以在那里写文章和评论文章。我想要自动检查新文章或评论是否为垃圾邮件。
有什么好的库可以做到这一点呢?
我查看了贝叶斯分类器库,但似乎我必须收集大量样本,并亲自将它们分类为垃圾邮件或非垃圾邮件……
我正在寻找一些可以开箱即用的东西。
更新:也许如果这样的东西不存在,有没有人知道下载了大量垃圾邮件和非垃圾邮件的分类,可以输入贝叶斯分类器?
发布于 2010-06-08 23:58:04
在CodePlex上查看Akismet .NET 2.0 Api。
下面是CodePlex页面中的一个示例:
// Verify key
Akismet api = new Akismet("key", "http://url.com", "Test/1.0");
if (!api.VerifyKey()) throw new Exception("Key could not be verified.");
// Create comment object for testing
AkismetComment comment = new AkismetComment();
comment.Blog = "http://joel.net";
comment.UserIp = "147.202.45.202";
comment.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)";
comment.CommentContent = "<a href=\"http://someone.finderinn.com\">find someone</a>";
comment.CommentType = "comment";
comment.CommentAuthor = "someone";
comment.CommentAuthorEmail = "backthismailtojerry@fastmail.fm";
comment.CommentAuthorUrl = "http://someone.finderrin.com";
// Test comment against akismet's service
bool isSpam = api.COmmentCheck(comment);阿基斯梅特很棒。
-Charles
发布于 2010-03-30 22:36:14
Mollom不是免费的,但它也提供了API。
http://mollom.com/features
http://mollom.com/pricing
https://stackoverflow.com/questions/2542324
复制相似问题