OBJECT- Type of object being annotated
ANNOTATION- Type of annotation
public interface RestrictedAnnotator<OBJECT,ANNOTATION>
RestrictedAnnotatorinterface describes annotators that can predict annotations based on an external context that restricts what annotations are allowed.
|Modifier and Type||Method and Description|
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 image
restrict- the set of allowed annotations