public interface AnnotationGraph
Annotation graphs are defined at the LDC's annotation site
Modifier and Type | Method and Description |
---|---|
AnnotationGraph |
getAnnotations(String type)
Get annotations by type
|
AnnotationGraph |
getAnnotations(String type,
FeatureMap features)
Get annotations by type and features
|
AnnotationGraph |
getAnnotations(String type,
FeatureMap features,
Long offset)
Get annotations by type, features and offset
|
AnnotationGraph |
getAnnotations(String type,
Long offset)
Get annotations by type and position.
|
Long |
getId()
Returns the Id of the annotation graph
|
Node |
getNode(Long id)
find a node by ID
|
Annotation |
newAnnotation(Long id,
long start,
long end,
String type) |
Annotation |
newAnnotation(Long id,
Node start,
Node end,
String type) |
Node |
putNodeAt(Long id,
long offset)
Creates a new node with the offset offset
|
AnnotationGraph getAnnotations(String type)
AnnotationGraph getAnnotations(String type, FeatureMap features)
AnnotationGraph getAnnotations(String type, Long offset)
AnnotationGraph getAnnotations(String type, FeatureMap features, Long offset)
Node putNodeAt(Long id, long offset) throws InvalidOffsetException
offset
- the offset in document where the node will pointInvalidOffsetException
Annotation newAnnotation(Long id, Node start, Node end, String type)
Annotation newAnnotation(Long id, long start, long end, String type)