OBJECT
- Type of object being annotatedANNOTATION
- Type of annotationpublic interface Annotator<OBJECT,ANNOTATION> extends Classifier<ANNOTATION,OBJECT>
The annotation interface extends the idea of a classifier with support for
feature-extraction from certain forms of object in order to generate the
classifications/annotations. The annotate(Object)
and
Classifier.classify(Object)
methods do exactly the same thing, but return
results in different forms. Which method is used might depend on the task at
hand. A simple implementation of the Classifier.classify(Object)
method that
calls the annotate(Object)
method can be found in the
AbstractAnnotator
class. Implementors are advised to extend the
AbstractAnnotator
class or one of its subclasses.
Modifier and Type | Method and Description |
---|---|
List<ScoredAnnotation<ANNOTATION>> |
annotate(OBJECT object)
Generate annotations for the given object.
|
Set<ANNOTATION> |
getAnnotations() |
classify
Set<ANNOTATION> getAnnotations()
List<ScoredAnnotation<ANNOTATION>> annotate(OBJECT object)
object
- the image