net.sf.textkit4j.classify.bayesian
Class BayesianClassifier

java.lang.Object
  extended by net.sf.textkit4j.classify.bayesian.BayesianClassifier
All Implemented Interfaces:
Classifier

public class BayesianClassifier
extends java.lang.Object
implements Classifier

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

BayesianClassifier

public BayesianClassifier()
Method Detail

trainToClassifyAs

public 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.

Specified by:
trainToClassifyAs in interface Classifier

classify

public java.util.Collection<Classification> classify(java.lang.String text)
TODO.

Specified by:
classify in interface Classifier


Copyright © 2009 All Eight, LLC. All Rights Reserved.