public class WordEmbedding
extends org.apache.uima.jcas.tcas.Annotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
WordEmbedding()
Never called.
|
|
WordEmbedding(int addr,
org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator
|
|
WordEmbedding(org.apache.uima.jcas.JCas jcas) |
|
WordEmbedding(org.apache.uima.jcas.JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
int |
getTypeIndexID() |
org.apache.uima.jcas.cas.FloatArray |
getWordEmbedding()
getter for WordEmbedding - gets A word embedding vector.
|
float |
getWordEmbedding(int i)
indexed getter for WordEmbedding - gets an indexed value - A word embedding vector.
|
void |
setWordEmbedding(org.apache.uima.jcas.cas.FloatArray v)
setter for WordEmbedding - sets A word embedding vector.
|
void |
setWordEmbedding(int i,
float v)
indexed setter for WordEmbedding - sets an indexed value - A word embedding vector.
|
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
clone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
protected WordEmbedding()
public WordEmbedding(int addr, org.apache.uima.jcas.cas.TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic WordEmbedding(org.apache.uima.jcas.JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic WordEmbedding(org.apache.uima.jcas.JCas jcas, int begin, int end)
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofApublic int getTypeIndexID()
getTypeIndexID
in class org.apache.uima.jcas.tcas.Annotation
public org.apache.uima.jcas.cas.FloatArray getWordEmbedding()
public void setWordEmbedding(org.apache.uima.jcas.cas.FloatArray v)
v
- value to set into the featurepublic float getWordEmbedding(int i)
i
- index in the array to getpublic void setWordEmbedding(int i, float v)
i
- index in the array to setv
- value to set into the arrayCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.