edu.upenn.cis.propbank_shen
Class Role

java.lang.Object
  extended by edu.upenn.cis.propbank_shen.Role

public class Role
extends Object

This class represents a "role" in the propbank lexical guidelines. A role may consist of a number of things. All roles have an associated argument label.

Author:
Scott Cotton
See Also:
ArgLabel

Field Summary
protected  ArgLabel arglabel
          the argument label associated with the role
protected  String descr
          a description of the role
protected  ModLabel modlabel
          the modifying label associated with the roleset, or null if there is none.
protected  Node node
          the node of the xml document from which this thing was made
protected  List vnroles
          A list of the verbnet roles associated with the role.
 
Constructor Summary
Role(Node n)
          construct a Role object from a role node in a frameset xml document.
 
Method Summary
 ArgLabel getArgLabel()
          return the associated argument label
 String getDescription()
          return the brief description of the role
 ModLabel getModLabel()
          return the associated modifying label, or null if there is no such modifying label.
 List getVNRoles()
          return a list (possibly empty) of the associated VerbNet roles see also the VerbNet website
 boolean hasModLabel()
          return true iff this role has a modifying label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node
the node of the xml document from which this thing was made


descr

protected String descr
a description of the role


arglabel

protected ArgLabel arglabel
the argument label associated with the role

See Also:
ArgLabel

modlabel

protected ModLabel modlabel
the modifying label associated with the roleset, or null if there is none.

See Also:
ModLabel

vnroles

protected List vnroles
A list of the verbnet roles associated with the role.

See Also:
VNRole
Constructor Detail

Role

public Role(Node n)
     throws CorruptDataException
construct a Role object from a role node in a frameset xml document.

Throws:
CorruptDataException
Method Detail

getDescription

public String getDescription()
return the brief description of the role


getArgLabel

public ArgLabel getArgLabel()
return the associated argument label


getModLabel

public ModLabel getModLabel()
return the associated modifying label, or null if there is no such modifying label.

See Also:
ModLabel

hasModLabel

public boolean hasModLabel()
return true iff this role has a modifying label

See Also:
ModLabel

getVNRoles

public List getVNRoles()
return a list (possibly empty) of the associated VerbNet roles see also the VerbNet website