addAnnotations
public boolean addAnnotations(AnnotationData data,
AnnotationAdderHelper helper,
AnnotationAdderConfiguration configuration,
org.apache.uima.jcas.JCas jCas)
Tries to add the given annotation data to the given cas. Returns true if succeeding, false otherwise.
- Specified by:
addAnnotations in interface AnnotationAdder
- Parameters:
data - The annotation data to add to the CAS. The AnnotationAdder must check if it handles the given data and return true or false accordingly.
helper - This object serves as utility method object as well as cache for data that would otherwise be computed multiple times.
configuration - Configuration relevant to adding annotations such as the offset mode.
jCas - The CAS to add the annotations to.
- Returns:
- true if the data was accepted, false otherwise.