Package | Description |
---|---|
messif.algorithms.impl |
Implementation of basic search algorithms.
|
messif.objects.classification |
Support for object classification.
|
messif.objects.classification.impl |
Provides implementations for common classification tasks.
|
messif.objects.classification.text |
Modifier and Type | Method and Description |
---|---|
protected void |
ClassifierAlgorithm.classificationWithConfidenceToAnswer(ClassificationWithConfidence<C> classification,
RankingQueryOperation op)
Converts the given classification to the operation answer.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassificationWithConfidenceBase<C>
Basic implementation of the
ClassificationWithConfidence interface. |
Modifier and Type | Method and Description |
---|---|
static <C> ClassificationWithConfidence<C> |
Classifications.convertToClassificationWithConfidence(java.lang.Object object,
java.lang.Class<? extends C> categoriesClass,
float confidence,
float lowestConfidence,
float highestConfidence)
Converts the given object to classification with confidence.
|
Modifier and Type | Method and Description |
---|---|
ClassificationWithConfidenceBase<C> |
ClassificationWithConfidenceBase.addAll(ClassificationWithConfidence<C> classification)
Adds all the categories with confidence from the given classification into this.
|
static <C> java.util.Comparator<C> |
Classifications.getCategoriesConfidenceComparator(ClassificationWithConfidence<C> classification,
boolean highestFirst)
Returns a
Comparator for sorting categories of the given Classification according to confidences. |
static <C> float |
Classifications.getExtremeConfidence(ClassificationWithConfidence<C> classification,
boolean greaterThan,
float startFrom)
Returns the highest/lowest confidence from the classes in the given classification.
|
static <C> java.util.Collection<C> |
Classifications.getSortedCategories(ClassificationWithConfidence<C> classification)
Returns all categories of the given classification sorted by confidences.
|
static <C> java.util.Collection<C> |
Classifications.getSortedCategories(ClassificationWithConfidence<C> classification,
boolean highestFirst)
Returns all categories of the given classification sorted by confidences.
|
static <C> java.util.Collection<C> |
Classifications.getSortedCategories(ClassificationWithConfidence<C> classification,
java.util.Comparator<? super C> comparator)
Returns all categories of the given classification sorted by the given comparator.
|
boolean |
ClassificationWithConfidenceBase.updateAllConfidences(ClassificationWithConfidence<C> classification)
Updates the all the categories with confidence in this classification.
|
Modifier and Type | Method and Description |
---|---|
ClassificationWithConfidence<C> |
ParametricRankedObjectDistanceClassifier.classify(java.util.Iterator<? extends RankedAbstractObject> iterator,
Parametric parameters) |
protected ClassificationWithConfidence<C> |
ParametricRankedObjectDistanceClassifier.getClassification(RankedAbstractObject object,
Parametric parameters)
Retrieves the classification from the object.
|
Modifier and Type | Class and Description |
---|---|
class |
KeywordClassification<T>
Encapsulation object for the data on which the
KeywordClassifier operates. |
Constructor and Description |
---|
KeywordClassification(java.lang.Class<? extends T> keywordClass,
ClassificationWithConfidence<?> classification)
Creates a new instance of keyword classification copying the settings from the given classification.
|
KeywordClassification(ClassificationWithConfidence<? extends T> classification)
Creates a new instance of keyword classification copying the settings from the given classification.
|