This project is read-only.
To understand what the naive bayes project does and how it works please read the following posts at my blog.

This example shows how to use the NaiveBayes class, that does the spam check.
NaiveBayes.NaiveBayes naiveBayes = new NaiveBayes.NaiveBayes();
// no spam
var result = naiveBayes.CheckEmail("Sincerely Mathias");
Assert.AreEqual(false, result);
// spam
result = naiveBayes.CheckEmail("Buy Cheap cialis Online");
Assert.AreEqual(true, result);
// no spam
result = naiveBayes.CheckEmail("Dear Graduates");
Assert.AreEqual(false, result);

Last edited May 25, 2013 at 8:08 AM by netmatze, version 8


No comments yet.