Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of dhotson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
bayes.php
stemmer.php
test.php

README

== Classifier-PHP

PHP port of Ruby classifier library.

See: http://github.com/xaviershay/classifier


== Example

$b = new Bayes('spam', 'ham');
$b->train('spam', 'omg lol this is spam viagra !! $$');
$b->train('ham', 'Hi Bob, I just wanted to say hello');

echo $b->classify('hello bob');
echo $b->classify('is this spam?');