开发者

Anyone know of a good open source spam checker in java or c#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_JAVA技巧

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

I'm creating a website where users can write articles and comment on the articles. I want to automatically check to see if a new article or comment is spam.

What are good libraries for doing this?

I looked at bayesian classifier libraries, but it seems that I would have to gather a large amount of samples and classify them all as spam or not spam myself...

I'm looking for something that can hopefully just tell me right out of the box.

UPDATE: Maybe if something like this doesn't exist, does anyone know of a download of a large amount of classifications of spam vs not spam that can be fed into a bayesian classifier?


Checkout the Akismet .NET 2.0 Api on CodePlex.

Here's an example from the CodePlex page:

// 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 rocks.

-Charles


Mollom isn't free, but it provides an API too.

http://mollom.com/features

http://mollom.com/pricing

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜