Information about a single standoff annotation.
Type | Name and description |
---|---|
String |
atType The @type value (if any) for the JSON element. |
Long |
end The end offset of the annotation. |
Map |
features Features of the annotation. |
String |
id A unique ID assigned to this annotation. |
String |
label The label used for the annotation, e.g. tok, s, etc. |
Map |
metadata Features assigned by the framework to the annotation. |
Long |
start The start offset of the annotation. |
Constructor and description |
---|
Annotation
() |
Annotation
(String type, long start, long end) |
Annotation
(String id, String type, long start, long end) |
Annotation
(String id, String type, String label, long start, long end) |
Annotation
(Annotation annotation) |
Annotation
(Map map) |
Type | Name and description |
---|---|
void |
addFeature(String name, String value) |
void |
addFeature(String name, Boolean value) |
void |
addFeature(String name, Number value) |
void |
addFeature(String name, Map value) |
void |
addFeature(String name, List value) |
void |
addFeature(String name, Set value) |
String |
getFeature(String name) |
List |
getFeatureList(String name) |
Map |
getFeatureMap(String name) |
Set |
getFeatureSet(String name) |
String |
toString() |
The @type value (if any) for the JSON element.
The end offset of the annotation.
Features of the annotation. Features are assumed to be String name/value pairs.
A unique ID assigned to this annotation.
Note: This ID value is assigned to the annotation by the framework and is not to be confused with an ID (xml:id, etc) value that the annotation itself might contain.
The label used for the annotation, e.g. tok, s, etc.
Features assigned by the framework to the annotation. E.g. a confidence score, the processor that generated the annotation etc.
The start offset of the annotation.
org.lappsgrid:serialization:2.7.0