package org.netevolved.analyzer.bayes; import java.util.Collection; public interface Classifier { /** * Train the classifier by telling it that the given features resulted in * the given category. * * @param category The category the features belong to. * @param features The features that resulted in the given category. */ public void learn(K category, Collection features); /** * The classify method. It will retrieve the most likely category for the * features given and depends on the concrete classifier implementation. * * @param features The features to classify. * @return The category most likely. */ public Classification classify(Collection features); public LearningPreprocessor getPreProcessor(); public boolean isTrained(); }