T
- the class of instances that are classifiedC
- the class of instances that represent the classification categoriespublic interface Classifier<T,C>
classified
into zero, one, or several categories C
.Classification
,
ClassificationWithConfidence
Modifier and Type | Method and Description |
---|---|
Classification<C> |
classify(T object,
Parametric parameters)
Classifies the given
object into zero, one, or several categories C . |
java.lang.Class<? extends C> |
getCategoriesClass()
Returns the class of instances that represent the classification categories (classes).
|
Classification<C> classify(T object, Parametric parameters) throws ClassificationException
object
into zero, one, or several categories C
.object
- the object to classifyparameters
- additional parameters for the classification;
the values for the parameters are specific to a given classifier
implementation and can be updated during the process if they are ModifiableParametric
ClassificationException
- if there was an error classifying the objectjava.lang.Class<? extends C> getCategoriesClass()