|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.textkit4j.classify.bayesian.BayesianClassifier
public class BayesianClassifier
Implements the Classifier API using Bayes Theorem.
Constructor Summary | |
---|---|
BayesianClassifier()
|
Method Summary | |
---|---|
java.util.Collection<Classification> |
classify(java.lang.String text)
TODO. |
void |
trainToClassifyAs(java.lang.String category,
java.lang.String text)
Training simply involves tracking how many times a word is associated with a particular category, how many words observed in total, etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BayesianClassifier()
Method Detail |
---|
public void trainToClassifyAs(java.lang.String category, java.lang.String text)
trainToClassifyAs
in interface Classifier
public java.util.Collection<Classification> classify(java.lang.String text)
classify
in interface Classifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |