I am working on Information extraction in GATE embeded.I have tried the following code to get the text from the Annotations:
AnnotationSet annotationSet = doc.getAnnotations().get("Person");
DocumentContent personStr = annotationSet .getContent();
But the get.Content is unable to work in the annotation type. So how can we get the text which is annotated. Thanks in advance