1 package net.sf.classifier4J; 2 3 import net.sf.classifier4J.bayesian.WordsDataSourceException; 4 5 6 public abstract class AbstractCategorizedTrainableClassifier extends AbstractClassifier implements ITrainableClassifier { 7 8 /*** 9 * @see net.sf.classifier4J.IClassifier#classify(java.lang.String) 10 */ 11 public double classify(String input) throws WordsDataSourceException, ClassifierException { 12 return classify(ICategorisedClassifier.DEFAULT_CATEGORY, input); 13 } 14 15 public void teachMatch(String input) throws WordsDataSourceException, ClassifierException { 16 teachMatch(ICategorisedClassifier.DEFAULT_CATEGORY, input); 17 } 18 19 public void teachNonMatch(String input) throws WordsDataSourceException, ClassifierException { 20 teachNonMatch(ICategorisedClassifier.DEFAULT_CATEGORY, input); 21 } 22 23 }