|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.uni_tuebingen.sfb.lichtenstein.treebanks.Node
public class Node
A node in a tree representing a sentence in the corpus.
| Constructor Summary | |
|---|---|
Node(int id,
int parent,
String pos,
String morph,
String edge)
Create a non-leaf node. |
|
Node(int id,
int parent,
String pos,
String morph,
String edge,
String lemma,
String word)
Create a leaf node. |
|
| Method Summary | |
|---|---|
LinkedList<Node> |
getDaughters()
|
String |
getEdgeLabel()
|
int |
getId()
Get the ID of this tree in the tree bank. |
int |
getLeftCorner()
|
String |
getLemma()
Get the lemma tag. |
String |
getMorph()
|
int |
getParentId()
Get the ID of the parent in the tree. |
String |
getPos()
Get the Part-Of-Speech tag. |
int |
getRightCorner()
|
String |
getWord()
|
void |
insertDaughter(Node node)
|
BinaryTree.BinaryNode |
toBinaryTree(List<Node> sisters,
int sisterIndex)
Convert to binary tree and collect label. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node(int id,
int parent,
String pos,
String morph,
String edge)
id - The node’s ID.parent - The parent ID of the node.pos - The part of speech tag of the node.morph - The morphology tag of the node.edge - The label of the edge to the node.
public Node(int id,
int parent,
String pos,
String morph,
String edge,
String lemma,
String word)
id - The node’s ID.parent - The parent ID of the node.pos - The part of speech tag of the node.morph - The morphology tag of the node.edge - The label of the edge to the node.lemma - The lemma form of the word.word - The word in the string corresponding to this node.| Method Detail |
|---|
public int getId()
public int getParentId()
public String getPos()
public String getMorph()
public String getEdgeLabel()
public String getLemma()
public String getWord()
public int getLeftCorner()
public int getRightCorner()
public LinkedList<Node> getDaughters()
public void insertDaughter(Node node)
public BinaryTree.BinaryNode toBinaryTree(List<Node> sisters,
int sisterIndex)
sisters - The sisters of the current node.sisterIndex - The index of the sister in the sister list that should be processed next.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||