public class TerminalTreebankNode extends TreebankNode
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
TerminalTreebankNode()
Never called.
|
|
TerminalTreebankNode(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
TerminalTreebankNode(JCas jcas) |
|
TerminalTreebankNode(JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
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() |
private void |
readObject()
Write your own initialization here
|
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.
|
getChildren, getChildren, getHeadIndex, getLeaf, getNodeTags, getNodeTags, getNodeType, getNodeValue, getParent, setChildren, setChildren, setHeadIndex, setLeaf, setNodeTags, setNodeTags, setNodeType, setNodeValue, setParent
protected TerminalTreebankNode()
public TerminalTreebankNode(int addr, TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic TerminalTreebankNode(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic TerminalTreebankNode(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 TreebankNode
private void readObject()
public int getIndex()
public void setIndex(int v)
v
- value to set into the featurepublic int getTokenIndex()
public void setTokenIndex(int v)
v
- value to set into the feature