Skip to content

omaximus/classifier-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

== 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?');

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%