// finally the annotations to the GATE document
String GATEAnnotationSetName = getConf().get(
"gate.annotationset.input", "Original markups");
AnnotationSet outputAS = gatedocument
.getAnnotations(GATEAnnotationSetName);
for (Annotation annot : inputDoc.getAnnotations()) {
// add to outputAS as a GATE annotation
FeatureMap features = Factory.newFeatureMap();
features.putAll(annot.getFeatures());
outputAS.add(annot.getStart(), annot.getEnd(), annot.getType(),
features);
}
return gatedocument;
}