public class TopicDistribution
extends org.apache.uima.jcas.tcas.Annotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
TopicDistribution()
Never called.
|
|
TopicDistribution(int addr,
org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator
|
|
TopicDistribution(org.apache.uima.jcas.JCas jcas) |
|
TopicDistribution(org.apache.uima.jcas.JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.jcas.cas.IntegerArray |
getTopicAssignment()
getter for TopicAssignment - gets Pointers to topics the document has been assigned to.
|
int |
getTopicAssignment(int i)
indexed getter for TopicAssignment - gets an indexed value - Pointers to topics the document has been assigned to.
|
org.apache.uima.jcas.cas.DoubleArray |
getTopicProportions()
getter for TopicProportions - gets Each topic's proportion in the document.
|
double |
getTopicProportions(int i)
indexed getter for TopicProportions - gets an indexed value - Each topic's proportion in the document.
|
int |
getTypeIndexID() |
void |
setTopicAssignment(org.apache.uima.jcas.cas.IntegerArray v)
setter for TopicAssignment - sets Pointers to topics the document has been assigned to.
|
void |
setTopicAssignment(int i,
int v)
indexed setter for TopicAssignment - sets an indexed value - Pointers to topics the document has been assigned to.
|
void |
setTopicProportions(org.apache.uima.jcas.cas.DoubleArray v)
setter for TopicProportions - sets Each topic's proportion in the document.
|
void |
setTopicProportions(int i,
double v)
indexed setter for TopicProportions - sets an indexed value - Each topic's proportion in the document.
|
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 TopicDistribution()
public TopicDistribution(int addr, org.apache.uima.jcas.cas.TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic TopicDistribution(org.apache.uima.jcas.JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic TopicDistribution(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.DoubleArray getTopicProportions()
public void setTopicProportions(org.apache.uima.jcas.cas.DoubleArray v)
v
- value to set into the featurepublic double getTopicProportions(int i)
i
- index in the array to getpublic void setTopicProportions(int i, double v)
i
- index in the array to setv
- value to set into the arraypublic org.apache.uima.jcas.cas.IntegerArray getTopicAssignment()
public void setTopicAssignment(org.apache.uima.jcas.cas.IntegerArray v)
v
- value to set into the featurepublic int getTopicAssignment(int i)
i
- index in the array to getpublic void setTopicAssignment(int i, int 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.