Class 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  
      • Fields inherited from class org.apache.uima.jcas.cas.TOP

        addr, jcasType
    • 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 generator
        PredictedSpan​(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 - gets
      double getScore()
      getter for score - gets
      int getTypeIndexID()  
      void setLabel​(java.lang.String v)
      setter for label - sets
      void 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.AnnotationBase

        getSofa, getView
      • 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.AnnotationBaseFS

        getView
      • 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
    • Field Detail

      • typeIndexID

        public static final int typeIndexID
      • type

        public static final int type
    • 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 reference
        type - 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 belongs
        begin - offset to the begin spot in the SofA
        end - offset to the end spot in the SofA
    • Method Detail

      • getTypeIndexID

        public int getTypeIndexID()
        Overrides:
        getTypeIndexID in class org.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