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) |
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, value
docID, index, sentIndex, setDocID, setIndex, setSentIndex
beginPosition, endPosition, setBeginPosition, setEndPosition
containsKey, get, keySet, remove, set, size
java.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<KEY extends TypesafeMap.Key<java.lang.String>> java.lang.String getString(java.lang.Class<KEY> key, java.lang.String def)