|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.classifier4J.AbstractClassifier | +--net.sf.classifier4J.AbstractCategorizedTrainableClassifier
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 |
public AbstractCategorizedTrainableClassifier()
Method Detail |
public double classify(java.lang.String input) throws WordsDataSourceException, ClassifierException
IClassifier
classify
in interface IClassifier
input
- the string to classify
ClassifierException
- If a non-recoverable problem occurs
WordsDataSourceException
IClassifier.classify(java.lang.String)
public void teachMatch(java.lang.String input) throws WordsDataSourceException, ClassifierException
teachMatch
in interface ITrainable
WordsDataSourceException
ClassifierException
public void teachNonMatch(java.lang.String input) throws WordsDataSourceException, ClassifierException
teachNonMatch
in interface ITrainable
WordsDataSourceException
ClassifierException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |