gate.annotation
Interface AnnotationFactory
- All Known Implementing Classes:
- DefaultAnnotationFactory
public interface AnnotationFactory
Factory used to create annotations in an annotation set.
- Author:
- Ken Williams
createAnnotationInSet
Annotation createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features)
- Adds a new AnnotationImpl to the given set.
- Parameters:
set - the set to which the new annotation will be addedid - the ID to use for the new annotationstart - the starting node for the new annotationend - the ending node for the new annotationtype - the type of the new annotationfeatures - the features for the new annotation