Class PredictedSpan
- java.lang.Object
-
- org.apache.uima.cas.impl.FeatureStructureImpl
-
- org.apache.uima.jcas.cas.TOP
-
- org.apache.uima.jcas.cas.AnnotationBase
-
- org.apache.uima.jcas.tcas.Annotation
-
- de.tudarmstadt.ukp.inception.recommendation.api.type.PredictedSpan
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.apache.uima.cas.AnnotationBaseFS
,org.apache.uima.cas.FeatureStructure
,org.apache.uima.cas.text.AnnotationFS
public class PredictedSpan extends org.apache.uima.jcas.tcas.Annotation
Updated by JCasGen Sun Jan 13 23:15:58 CET 2019 XML source: /Users/bluefire/git/inception-application/target/checkout/inception-recommendation-api/target/jcasgen/typesystem.xml
-
-
Field Summary
Fields Modifier and Type Field Description static int
type
static int
typeIndexID
-
Constructor Summary
Constructors Modifier Constructor Description protected
PredictedSpan()
Never called.PredictedSpan(int addr, org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generatorPredictedSpan(org.apache.uima.jcas.JCas jcas)
PredictedSpan(org.apache.uima.jcas.JCas jcas, int begin, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLabel()
getter for label - getsdouble
getScore()
getter for score - getsint
getTypeIndexID()
void
setLabel(java.lang.String v)
setter for label - setsvoid
setScore(double v)
setter for score - sets-
Methods inherited from class org.apache.uima.jcas.tcas.Annotation
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd
-
Methods inherited from class org.apache.uima.jcas.cas.TOP
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
-
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
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
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.uima.cas.FeatureStructure
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
-
-
-
-
Constructor Detail
-
PredictedSpan
protected PredictedSpan()
Never called. Disable default constructor
-
PredictedSpan
public PredictedSpan(int addr, org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator- Parameters:
addr
- low level Feature Structure referencetype
- the type of this Feature Structure
-
PredictedSpan
public PredictedSpan(org.apache.uima.jcas.JCas jcas)
- Parameters:
jcas
- JCas to which this Feature Structure belongs
-
PredictedSpan
public PredictedSpan(org.apache.uima.jcas.JCas jcas, int begin, int end)
- Parameters:
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofA
-
-
Method Detail
-
getTypeIndexID
public int getTypeIndexID()
- Overrides:
getTypeIndexID
in classorg.apache.uima.jcas.tcas.Annotation
- Returns:
- index of the type
-
getLabel
public java.lang.String getLabel()
getter for label - gets- Returns:
- value of the feature
-
setLabel
public void setLabel(java.lang.String v)
setter for label - sets- Parameters:
v
- value to set into the feature
-
getScore
public double getScore()
getter for score - gets- Returns:
- value of the feature
-
setScore
public void setScore(double v)
setter for score - sets- Parameters:
v
- value to set into the feature
-
-