|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MixupCompatible
Marker interface for SpanFeatureExtractor objects which allow one to attach a type of required annotations that must be present before feature extraction starts. This also allows one to attach to a feature extractor an AnnotatorLoader, which helps find Annotators to provide the required annotations.
Method Summary | |
---|---|
java.lang.String |
getRequiredAnnotation()
Retrieve the annotation required by this SpanFeatureExtractor. |
void |
setAnnotatorLoader(AnnotatorLoader loader)
Attach an annotatorLoader to the SpanFeatureExtractor, which is used to find the required Annotation (and any other Annotations that that it might recursively require.) |
void |
setRequiredAnnotation(java.lang.String annotation)
A correct implementation of a MixupCompatible SpanFeatureExtractor will call textLabels.require(annotation,null,loader) before
extracting features relative to textLabels. |
Method Detail |
---|
void setRequiredAnnotation(java.lang.String annotation)
textLabels.require(annotation,null,loader)
before
extracting features relative to textLabels. A null annotation
means that no textLabels.require(...)
call will be made.
java.lang.String getRequiredAnnotation()
void setAnnotatorLoader(AnnotatorLoader loader)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |