public interface AbstractCoreLabel extends Label, HasWord, HasIndex, HasTag, HasLemma, HasOffset, TypesafeMap
TypesafeMap.Key<VALUE>| Modifier and Type | Method and Description |
|---|---|
<KEY extends TypesafeMap.Key<String>> |
getString(Class<KEY> key)
Return a non-null String value for a key.
|
String |
ner()
Return the named entity class of the label (or null if none).
|
String |
originalText() |
void |
setNER(String ner)
Set the named entity class of the label.
|
void |
setOriginalText(String originalText) |
labelFactory, setFromString, setValue, toString, valuedocID, index, sentIndex, setDocID, setIndex, setSentIndexbeginPosition, endPosition, setBeginPosition, setEndPositioncontainsKey, get, has, keySet, remove, set, sizeString ner()
void setNER(String ner)
ner - The NER class for the labelString originalText()
void setOriginalText(String originalText)
<KEY extends TypesafeMap.Key<String>> String getString(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