org.apache.ctakes.typesystem.type.syntax
Class TerminalTreebankNode

java.lang.Object
  extended by org.apache.uima.cas.impl.FeatureStructureImpl
      extended by org.apache.uima.jcas.cas.TOP
          extended by org.apache.uima.jcas.cas.AnnotationBase
              extended by org.apache.uima.jcas.tcas.Annotation
                  extended by org.apache.ctakes.typesystem.type.syntax.TreebankNode
                      extended by org.apache.ctakes.typesystem.type.syntax.TerminalTreebankNode
All Implemented Interfaces:
Cloneable, org.apache.uima.cas.AnnotationBaseFS, org.apache.uima.cas.FeatureStructure, org.apache.uima.cas.text.AnnotationFS

public class TerminalTreebankNode
extends TreebankNode

A Penn Treebank Node; as a terminal, there is an associated word, and the index of the word is a feature. Updated by JCasGen Thu Nov 28 10:33:42 CST 2013 XML source: C:/build-Apache-cTAKES/ctakes-3.1.1/rc2/checkout/ctakes/target/checkout/ctakes-side-effect/src/main/resources/org/apache/ctakes/sideeffect/types/TypeSystem.xml


Field Summary
static int type
           
static int typeIndexID
           
 
Fields inherited from class org.apache.uima.jcas.cas.TOP
addr, jcasType
 
Constructor Summary
protected TerminalTreebankNode()
          Never called.
  TerminalTreebankNode(int addr, org.apache.uima.jcas.cas.TOP_Type type)
          Internal - constructor used by generator
  TerminalTreebankNode(org.apache.uima.jcas.JCas jcas)
           
  TerminalTreebankNode(org.apache.uima.jcas.JCas jcas, int begin, int end)
           
 
Method Summary
 int getIndex()
          getter for index - gets The index of this node in the top node's list of terminals.
 int getTokenIndex()
          getter for tokenIndex - gets The tokenIndex of a terminal is n, where the terminal is the nth token in a sentence.
 int getTypeIndexID()
           
 void setIndex(int v)
          setter for index - sets The index of this node in the top node's list of terminals.
 void setTokenIndex(int v)
          setter for tokenIndex - sets The tokenIndex of a terminal is n, where the terminal is the nth token in a sentence.
 
Methods inherited from class org.apache.ctakes.typesystem.type.syntax.TreebankNode
getChildren, getChildren, getHeadIndex, getLeaf, getNodeTags, getNodeTags, getNodeType, getNodeValue, getParent, setChildren, setChildren, setHeadIndex, setLeaf, setNodeTags, setNodeTags, setNodeType, setNodeValue, setParent
 
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, 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

TerminalTreebankNode

protected TerminalTreebankNode()
Never called. Disable default constructor


TerminalTreebankNode

public TerminalTreebankNode(int addr,
                            org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator


TerminalTreebankNode

public TerminalTreebankNode(org.apache.uima.jcas.JCas jcas)

TerminalTreebankNode

public TerminalTreebankNode(org.apache.uima.jcas.JCas jcas,
                            int begin,
                            int end)
Method Detail

getTypeIndexID

public int getTypeIndexID()
Overrides:
getTypeIndexID in class TreebankNode

getIndex

public int getIndex()
getter for index - gets The index of this node in the top node's list of terminals.


setIndex

public void setIndex(int v)
setter for index - sets The index of this node in the top node's list of terminals.


getTokenIndex

public int getTokenIndex()
getter for tokenIndex - gets The tokenIndex of a terminal is n, where the terminal is the nth token in a sentence. The value -1 means that this terminal does not correspond to a token (because it is a trace.) We assume that each token corresponds to a terminal.


setTokenIndex

public void setTokenIndex(int v)
setter for tokenIndex - sets The tokenIndex of a terminal is n, where the terminal is the nth token in a sentence. The value -1 means that this terminal does not correspond to a token (because it is a trace.) We assume that each token corresponds to a terminal.



Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.