|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsem.graph.Node
public class Node
A node class for the dependency graph. It has a field for lemma and part-of-speech.
Constructor Summary | |
---|---|
Node()
Create a new node. |
|
Node(java.lang.String lemma,
java.lang.String pos)
Create new node. |
Method Summary | |
---|---|
Node |
clone()
Create a new independent node with the same lemma and POS. |
java.lang.String |
getLabel()
Get the combined representation of lemma and POS: lemma and POS joined by underscore (lemma_POS). |
java.lang.String |
getLemma()
Get the lemma of this node. |
java.lang.String |
getPos()
Get the POS of this node |
void |
print()
Print the label to System.out. |
void |
setLemma(java.lang.String lemma)
Set the lemma for this node. |
void |
setPos(java.lang.String pos)
Set the POS for the node. |
java.lang.String |
toString()
Get the string representation of this node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node()
public Node(java.lang.String lemma, java.lang.String pos)
lemma
- Lemmapos
- Part-of-speechMethod Detail |
---|
public java.lang.String getLemma()
public java.lang.String getPos()
public java.lang.String getLabel()
public void print()
public java.lang.String toString()
toString
in class java.lang.Object
public void setPos(java.lang.String pos)
pos
- POSpublic void setLemma(java.lang.String lemma)
lemma
- Lemmapublic Node clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |