public class KnowtatorAnnotation
extends java.lang.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 |
---|---|
java.util.Map<java.lang.String,KnowtatorAnnotation> |
annotationSlots
The annotation-valued annotation attributes (i.e.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
booleanSlots
The boolean-valued annotation attributes
|
java.lang.String |
id
The unique identifier assigned to this annotation by Knowtator
|
java.lang.String |
spannedText
The text spanned by this annnotation (
null if not associated with a span of text). |
java.util.List<KnowtatorAnnotation.Span> |
spans
The character offsets of this annotation (empty if not associated with a span of text).
|
java.util.Map<java.lang.String,java.lang.String> |
stringSlots
The string-valued annotation attributes
|
java.lang.String |
type
The type (or "class") of annotation
|
Constructor and Description |
---|
KnowtatorAnnotation()
Construct a new KnowtatorAnnotation.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addSpan(int begin,
int end)
Create a new span and add it to the list (not publicly available)
|
boolean |
equals(java.lang.Object obj) |
KnowtatorAnnotation.Span |
getCoveringSpan()
Get a span that approximates
spans , giving the earliest begin offset and the latest
end offset. |
int |
hashCode() |
java.lang.String |
toString() |
public java.lang.String id
public java.util.List<KnowtatorAnnotation.Span> spans
public java.lang.String spannedText
null
if not associated with a span of text).public java.lang.String type
public java.util.Map<java.lang.String,java.lang.String> stringSlots
public java.util.Map<java.lang.String,java.lang.Boolean> booleanSlots
public java.util.Map<java.lang.String,KnowtatorAnnotation> annotationSlots
KnowtatorAnnotation()
public KnowtatorAnnotation.Span getCoveringSpan()
spans
, giving the earliest begin offset and the latest
end offset.void addSpan(int begin, int end)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object