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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenprivate 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()
BasicTreegetNode in class BasicTree<AParseTree>public java.lang.String getId()
BasicTreegetId in interface INodegetId in class BasicTree<AParseTree>public java.lang.String getValue()
INodepublic java.lang.String getWord()
ILabelpublic Token getToken()
public java.lang.String getLemma()
ILabelpublic int getIndex()
ILabelpublic java.lang.Double getScore()
INodepublic java.lang.String toString()
toString in class BasicTree<AParseTree>