Package | Description |
---|---|
gate | |
gate.annotation |
Modifier and Type | Interface and Description |
---|---|
interface |
Annotation
An Annotation is an arc in an AnnotationSet.
|
Modifier and Type | Method and Description |
---|---|
static String |
Utils.cleanStringFor(Document doc,
SimpleAnnotation ann)
Return the cleaned document text as a String corresponding to the annotation.
|
static DocumentContent |
Utils.contentFor(SimpleDocument doc,
SimpleAnnotation ann)
Return the DocumentContent corresponding to the annotation.
|
static Long |
Utils.end(SimpleAnnotation a)
Get the end offset of an annotation.
|
static int |
Utils.length(SimpleAnnotation ann)
Return the length of the document content covered by an Annotation as an
int -- if the content is too long for an int, the method will throw
a GateRuntimeException.
|
static long |
Utils.lengthLong(SimpleAnnotation ann)
Return the length of the document content covered by an Annotation as a
long.
|
static Long |
Utils.start(SimpleAnnotation a)
Get the start offset of an annotation.
|
static String |
Utils.stringFor(Document doc,
SimpleAnnotation ann)
Return the document text as a String corresponding to the annotation.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationImpl
Provides an implementation for the interface gate.Annotation
|
Copyright © 2024 GATE. All rights reserved.