public class KnowtatorAnnotation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KnowtatorAnnotation.Span
Represents the character offsets of a Knowtator annotation.
|
Modifier and Type | Field and Description |
---|---|
Map<String,KnowtatorAnnotation> |
annotationSlots
The annotation-valued annotation attributes (i.e.
|
Map<String,Boolean> |
booleanSlots
The boolean-valued annotation attributes
|
String |
id
The unique identifier assigned to this annotation by Knowtator
|
String |
spannedText
The text spanned by this annnotation (
null if not associated with a span of text). |
List<KnowtatorAnnotation.Span> |
spans
The character offsets of this annotation (empty if not associated with a span of text).
|
Map<String,String> |
stringSlots
The string-valued annotation attributes
|
String |
type
The type (or "class") of annotation
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
KnowtatorAnnotation.Span |
getCoveringSpan()
Get a span that approximates
spans , giving the earliest begin offset and the latest
end offset. |
int |
hashCode() |
String |
toString() |
public String id
public List<KnowtatorAnnotation.Span> spans
public String spannedText
null
if not associated with a span of text).public String type
public Map<String,KnowtatorAnnotation> annotationSlots
public KnowtatorAnnotation.Span getCoveringSpan()
spans
, giving the earliest begin offset and the latest
end offset.Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.