public class SingleOutcomeClassifier<OUTCOME_TYPE> extends Object implements Classifier<OUTCOME_TYPE>, ReflectionUtil.TypeArgumentDelegator
Constructor and Description |
---|
SingleOutcomeClassifier(OUTCOME_TYPE value) |
Modifier and Type | Method and Description |
---|---|
OUTCOME_TYPE |
classify(List<Feature> features)
Classifies a list of features.
|
Map<String,Type> |
getTypeArguments(Class<?> genericType) |
Map<OUTCOME_TYPE,Double> |
score(List<Feature> features)
Classify a list of features, and return the scores for each of the outcomes
|
public SingleOutcomeClassifier(OUTCOME_TYPE value)
public OUTCOME_TYPE classify(List<Feature> features) throws CleartkProcessingException
Classifier
classify
in interface Classifier<OUTCOME_TYPE>
features
- a list of features to be classifiedCleartkProcessingException
public Map<String,Type> getTypeArguments(Class<?> genericType)
getTypeArguments
in interface ReflectionUtil.TypeArgumentDelegator
public Map<OUTCOME_TYPE,Double> score(List<Feature> features)
Classifier
score
in interface Classifier<OUTCOME_TYPE>
features
- a list of features to be classifiedCopyright © 2014. All rights reserved.