Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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?');
Something went wrong with that request. Please try again.