net.sf.classifier4J
Class AbstractCategorizedTrainableClassifier

java.lang.Object
  |
  +--net.sf.classifier4J.AbstractClassifier
        |
        +--net.sf.classifier4J.AbstractCategorizedTrainableClassifier
All Implemented Interfaces:
ICategorisedClassifier, IClassifier, ITrainable, ITrainableClassifier
Direct Known Subclasses:
BayesianClassifier, VectorClassifier

public abstract class AbstractCategorizedTrainableClassifier
extends AbstractClassifier
implements ITrainableClassifier


Field Summary
 
Fields inherited from class net.sf.classifier4J.AbstractClassifier
cutoff
 
Fields inherited from interface net.sf.classifier4J.ICategorisedClassifier
DEFAULT_CATEGORY
 
Fields inherited from interface net.sf.classifier4J.IClassifier
DEFAULT_CUTOFF, LOWER_BOUND, NEUTRAL_PROBABILITY, UPPER_BOUND
 
Constructor Summary
AbstractCategorizedTrainableClassifier()
           
 
Method Summary
 double classify(java.lang.String input)
          Function to determine the probability string matches a criteria.
 void teachMatch(java.lang.String input)
           
 void teachNonMatch(java.lang.String input)
           
 
Methods inherited from class net.sf.classifier4J.AbstractClassifier
getMatchCutoff, isMatch, isMatch, setMatchCutoff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.classifier4J.ICategorisedClassifier
classify, isMatch
 
Methods inherited from interface net.sf.classifier4J.IClassifier
isMatch, isMatch, setMatchCutoff
 
Methods inherited from interface net.sf.classifier4J.ITrainable
teachMatch, teachNonMatch
 

Constructor Detail

AbstractCategorizedTrainableClassifier

public AbstractCategorizedTrainableClassifier()
Method Detail

classify

public double classify(java.lang.String input)
                throws WordsDataSourceException,
                       ClassifierException
Description copied from interface: IClassifier
Function to determine the probability string matches a criteria.

Specified by:
classify in interface IClassifier
Parameters:
input - the string to classify
Returns:
the likelyhood that this string is a match for this net.sf.classifier4J. 1 means 100% likely.
Throws:
ClassifierException - If a non-recoverable problem occurs
WordsDataSourceException
See Also:
IClassifier.classify(java.lang.String)

teachMatch

public void teachMatch(java.lang.String input)
                throws WordsDataSourceException,
                       ClassifierException
Specified by:
teachMatch in interface ITrainable
WordsDataSourceException
ClassifierException

teachNonMatch

public void teachNonMatch(java.lang.String input)
                   throws WordsDataSourceException,
                          ClassifierException
Specified by:
teachNonMatch in interface ITrainable
WordsDataSourceException
ClassifierException


Copyright © 2003-2005 Nick Lothian. All Rights Reserved.