com.aliasi.corpus
Interface ClassificationHandler<E,C extends Classification>

Type Parameters:
E - the type of object being classified
C - the type of classification that is handled
All Superinterfaces:
Handler
All Known Implementing Classes:
BernoulliClassifier, BinaryLMClassifier, ClassifierEvaluator, DynamicLMClassifier, KnnClassifier, NaiveBayesClassifier, TfIdfClassifierTrainer, TradNaiveBayesClassifier, XValidatingClassificationCorpus

Deprecated. Use ObjectHandler with subclass of Classified<E> instead.

@Deprecated
public interface ClassificationHandler<E,C extends Classification>
extends Handler

The ClassificationHandler interface specifies a single method for operating on a classification input and result. Because Classification objects may actually implement a subinterface of Classification, this handler may be used for training on richer than first-best classification results.

Since:
LingPipe2.3.1
Version:
3.9.1
Author:
Bob Carpenter

Method Summary
 void handle(E input, C classification)
          Deprecated. Handle the specified object and its classification.
 

Method Detail

handle

void handle(E input,
            C classification)
Deprecated. 
Handle the specified object and its classification.

Implementations may throw an illegal argument exception if the classification is not of the required