0

我正在创建一个网站,用户可以在其中撰写文章并对文章发表评论。我想自动检查新文章或评论是否为垃圾邮件。

有什么好的图书馆可以做到这一点?

我查看了贝叶斯分类器库,但似乎我必须收集大量样本并将它们全部归类为垃圾邮件或我自己不是垃圾邮件......

我正在寻找可以直接告诉我的东西。

更新:也许如果这样的东西不存在,有没有人知道可以下载大量垃圾邮件分类而不是垃圾邮件可以输入贝叶斯分类器?

4

2 回答 2

0

Mollom 不是免费的,但它也提供了一个 API。

http://mollom.com/features

http://mollom.com/pricing

于 2010-03-30T14:36:13.577 回答
0

查看 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);

Akismet 岩石。

-查尔斯

于 2010-06-08T15:58:03.623 回答