edu.ucdenver.ccp.esm
Class Vertex

java.lang.Object
  extended by edu.ucdenver.ccp.esm.Vertex

public class Vertex
extends Object

Definition of Vertex for dependency graphs

Vertex is then fed into graphs of the JUNG library

The Vertex definition can be modified based on one's own needs

Author:
Implemented by Haibin Liu and Tested by Philippe Thomas

Constructor Summary
Vertex()
          default Construtor to initialize the class fields to empty
Vertex(String token)
          Construtor to initialize the class field
 
Method Summary
 String getCompareForm()
          retrieve the comparison form of the node
 String getTag()
          retrieve the POS tag of the node
 String getToken()
          retrieve original token of the node
 String getWord()
          retrieve the word of the node
 void setCompareForm(String compareForm)
          set the comparison form of the node
 void setGeneralizedPOS(String generalizedPOS)
          set the generalized POS tag of the node
 void setLemma(String lemma)
          set lemma for the node
 String toString()
          print node content
protected  void update(Vertex target)
          use one node's information to update another node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vertex

public Vertex(String token)
Construtor to initialize the class field


Vertex

public Vertex()
default Construtor to initialize the class fields to empty

Method Detail

update

protected void update(Vertex target)
use one node's information to update another node


getToken

public String getToken()
retrieve original token of the node

Returns:
original token

getWord

public String getWord()
retrieve the word of the node

Returns:
word

getTag

public String getTag()
retrieve the POS tag of the node

Returns:
POS tag

setLemma

public void setLemma(String lemma)
set lemma for the node

Parameters:
lemma -

getCompareForm

public String getCompareForm()
retrieve the comparison form of the node

Returns:
comparison form

setCompareForm

public void setCompareForm(String compareForm)
set the comparison form of the node

Parameters:
compareForm -

setGeneralizedPOS

public void setGeneralizedPOS(String generalizedPOS)
set the generalized POS tag of the node

Parameters:
generalizedPOS -

toString

public String toString()
print node content

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.