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.
|
java.lang.String |
ner()
Return the named entity class of the label (or null if none).
|
java.lang.String |
originalText() |
void |
setNER(java.lang.String ner)
Set the named entity class of the label.
|
void |
setOriginalText(java.lang.String originalText) |
labelFactory, setFromString, setValue, toString, valuedocID, index, sentIndex, setDocID, setIndex, setSentIndexbeginPosition, endPosition, setBeginPosition, setEndPositioncontainsKey, get, has, keySet, remove, set, sizejava.lang.String ner()
void setNER(java.lang.String ner)
ner - The NER class for the labeljava.lang.String originalText()
void setOriginalText(java.lang.String originalText)
<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