I am looking for a naive Bayes classifier for PHP, ideally this is equivalent to the Python version of Reverend Bayes. Does anyone know about such a library?
Basically, I need to be able to train him with a set of labels and words, i.e. GOOD = good, happy, fun; Bad = wrong, garbage, terrible, etc., then pass it a string value and return the best guess to it. The reverend does this fine, but unfortunately the application that you now need to use is not Python based and makes the bridge between them unfeasible.
Any suggestions would be highly appreciated, as most of the classes that I found seem to be focused on medicine with only a few cases or setting up spam filtering.
source
share