I'm trying to extract the individual text values of an annotation set which are generated by the default ANNIE processing resources.
When i iterate through the annotation set each entry only gives the start and end position which the annotation references but does not give a .value() method. Is there an easy way to get the value or do i need to use a FileWriter or some equivalent to extract the value directly from the Corpus I'm processing using the start and end positions of the annotation?
annotTypesRequired.add("Location");
Set<Annotation> organization = new HashSet<Annotation>(
defaultAnnotSet.get(annotTypesRequired));