public class Annotation extends ArrayCoreMap
TypesafeMap.Key<VALUE>
listener
Constructor and Description |
---|
Annotation()
Deprecated.
|
Annotation(Annotation map)
Copy constructor.
|
Annotation(java.util.List<CoreMap> sentences)
Make a new Annotation from a List of tokenized sentences.
|
Annotation(java.lang.String text)
The text becomes the CoreAnnotations.TextAnnotation of the newly
created Annotation.
|
Modifier and Type | Method and Description |
---|---|
Annotation |
copy()
Copies the map, but not a deep copy.
|
java.lang.String |
toString()
The basic toString() method of an Annotation simply
prints out the text over which any annotations have
been made (TextAnnotation).
|
compact, containsKey, equals, get, hashCode, keySet, keySetNotNull, prettyLog, remove, set, setCapacity, size, toShorterString, toShortString, toShortString
public Annotation(Annotation map)
map
- The new Annotation copies this one.public Annotation(java.lang.String text)
public Annotation(java.util.List<CoreMap> sentences)
@Deprecated public Annotation()
public Annotation copy()
public java.lang.String toString()
toShorterString();
.toString
in class ArrayCoreMap