<p>I was wondering if there is any good and clean object-oriented programming (OOP) implementation of Bayesian filtering for spam and text classification? This is just for learning purposes.</p>

[{'answer_id': 1090, 'author': 'svrist', 'author_id': 86, 'author_profile': 'https://Stackoverflow.com/users/86', 'pm_score': 3, 'selected': False, 'text': '<p>Maybe <a href="https://ci-bayes.dev.java.net/" rel="nofollow noreferrer">https://ci-bayes.dev.java.net/</a> or <a href="http://www.cs.cmu.edu/~javabayes/Home/node2.html" rel="nofollow noreferrer">http://www.cs.cmu.edu/~javabayes/Home/node2.html</a>?</p>\n\n<p>I never played with it either.</p>\n'}, {'answer_id': 1095, 'author': 'Yaakov Ellis', 'author_id': 51, 'author_profile': 'https://Stackoverflow.com/users/51', 'pm_score': 2, 'selected': False, 'text': '<p>Here is an implementation of Bayesian filtering in C#: <a href="http://www.codeproject.com/KB/recipes/BayesianCS.aspx" rel="nofollow noreferrer">A Naive Bayesian Spam Filter for C#</a> (hosted on CodeProject).</p>\n'}, {'answer_id': 1142, 'author': 'Vincent Robert', 'author_id': 268, 'author_profile': 'https://Stackoverflow.com/users/268', 'pm_score': 1, 'selected': False, 'text': '<p>In French, but you should be able to find the download link :)\n<a href="http://xhtml.net/scripts/PHPNaiveBayesianFilter" rel="nofollow noreferrer">PHP Naive Bayesian Filter</a></p>\n'}, {'answer_id': 37521, 'author': 'Binil Thomas', 'author_id': 3973, 'author_profile': 'https://Stackoverflow.com/users/3973', 'pm_score': 3, 'selected': False, 'text': '<p>Check out Chapter 6 of <a href="https://rads.stackoverflow.com/amzn/click/com/0596529325" rel="noreferrer" rel="nofollow noreferrer">Programming Collective Intelligence</a></p>\n'}, {'answer_id': 42406, 'author': 'Benedikt Waldvogel', 'author_id': 4308, 'author_profile': 'https://Stackoverflow.com/users/4308', 'pm_score': 5, 'selected': True, 'text': '<p>I definitely recommend <a href="http://www.cs.waikato.ac.nz/ml/weka/" rel="noreferrer">Weka</a> which is an <em>Open Source Data Mining Software</em> written in Java:</p>\n\n<blockquote>\n  <p>Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from your own Java code. Weka contains tools for data pre-processing, classification, regression, clustering, association rules, and visualization. It is also well-suited for developing new machine learning schemes.</p>\n</blockquote>\n\n<p>As mentioned above, it ships with a bunch of different classifiers like <a href="http://en.wikipedia.org/wiki/Support_vector_machine" rel="noreferrer">SVM</a>, <a href="http://en.wikipedia.org/wiki/Winnow_%28algorithm%29" rel="noreferrer">Winnow</a>, <a href="http://en.wikipedia.org/wiki/C4.5_algorithm" rel="noreferrer">C4.5</a>, Naive Bayes (of course) and many more (see the <a href="http://weka.sourceforge.net/doc/" rel="noreferrer">API doc</a>).\nNote that a lot of classifiers are known to have <strong>much better perfomance than Naive Bayes</strong> in the field of spam detection or text classification.</p>\n\n<p>Furthermore Weka brings you a very <a href="http://www.cs.waikato.ac.nz/~ml/weka/gui_explorer.html" rel="noreferrer">powerful GUI</a>…</p>\n'}, {'answer_id': 840232, 'author': 'Joel Martinez', 'author_id': 5416, 'author_profile': 'https://Stackoverflow.com/users/5416', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://codecube.net/2009/05/bayesian-filtering-with-c/" rel="nofollow noreferrer">nBayes</a> - another C# implementation hosted on CodePlex</p>\n'}]
['https://Stackoverflow.com/questions/1083', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/260/']