public interface AbstractCoreLabel extends AbstractToken, Label, TypesafeMap
TypesafeMap.Key<VALUE>
Modifier and Type | Method and Description |
---|---|
<KEY extends TypesafeMap.Key<java.lang.String>> |
getString(java.lang.Class<KEY> key)
Return a non-null String value for a key.
|
<KEY extends TypesafeMap.Key<java.lang.String>> |
getString(java.lang.Class<KEY> key,
java.lang.String def) |
docID, index, sentIndex, setDocID, setIndex, setSentIndex
beginPosition, endPosition, setBeginPosition, setEndPosition
originalText, setOriginalText
after, before, originalText, setAfter, setBefore, setOriginalText
labelFactory, setFromString, setValue, toString, value
containsKey, get, keySet, remove, set, size
<KEY extends TypesafeMap.Key<java.lang.String>> java.lang.String getString(java.lang.Class<KEY> key)
KEY
- A key type with a String valuekey
- The key to return the value of.null
and the String value of the key otherwise<KEY extends TypesafeMap.Key<java.lang.String>> java.lang.String getString(java.lang.Class<KEY> key, java.lang.String def)