public class AParseTree extends BasicTree<AParseTree> implements ITreeNode<AParseTree>
BasicTree.BreadthFirstTreeNodes, BasicTree.DepthFirstPostOrderTreeNodes, BasicTree.DepthFirstPreOrderTreeNodes, BasicTree.TreeIterator<T extends BasicTree<T>>, BasicTree.TreeNodesByLevel
Modifier and Type | Field and Description |
---|---|
java.util.Properties |
annotations
Annotations
|
double |
score
Score
|
private static long |
serialVersionUID |
private Token |
token
Token
|
java.lang.String |
value
Value
|
Constructor and Description |
---|
AParseTree(java.lang.String value,
Token token,
double score)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Get node id (each type instance will manage its own id)
|
ILabel |
getILabel()
Get node label
|
int |
getIndex()
Get index
|
java.lang.String |
getLemma()
Get lemma
|
AParseTree |
getNode()
Get node cast to type
|
java.lang.Double |
getScore()
Get score
|
Token |
getToken()
Get token
|
java.lang.String |
getValue()
Get value
|
java.lang.String |
getWord()
Get word
|
java.lang.String |
toString() |
depth, getChildren, getParent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
private static final long serialVersionUID
private final Token token
public final java.lang.String value
public double score
public final java.util.Properties annotations
public AParseTree(java.lang.String value, Token token, double score)
value
- valuetoken
- tokenscore
- scorepublic AParseTree getNode()
BasicTree
getNode
in class BasicTree<AParseTree>
public java.lang.String getId()
BasicTree
getId
in interface INode
getId
in class BasicTree<AParseTree>
public java.lang.String getValue()
INode
public java.lang.String getWord()
ILabel
public Token getToken()
public java.lang.String getLemma()
ILabel
public int getIndex()
ILabel
public java.lang.Double getScore()
INode
public java.lang.String toString()
toString
in class BasicTree<AParseTree>