OBJECT - Type of object being annotatedANNOTATION - Type of annotationpublic interface RestrictedAnnotator<OBJECT,ANNOTATION>
RestrictedAnnotator interface describes annotators
that can predict annotations based on an external context
that restricts what annotations are allowed.| Modifier and Type | Method and Description |
|---|---|
List<ScoredAnnotation<ANNOTATION>> |
annotate(OBJECT object,
Collection<ANNOTATION> restrict)
Generate annotations for the given object, restricting
the potential annotations to coming from the given set.
|
List<ScoredAnnotation<ANNOTATION>> annotate(OBJECT object, Collection<ANNOTATION> restrict)
object - the imagerestrict - the set of allowed annotations