|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.upenn.cis.propbank_shen.Role
public class Role
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.
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 |
|---|
protected Node node
protected String descr
protected ArgLabel arglabel
ArgLabelprotected ModLabel modlabel
ModLabelprotected List vnroles
VNRole| Constructor Detail |
|---|
public Role(Node n)
throws CorruptDataException
CorruptDataException| Method Detail |
|---|
public String getDescription()
public ArgLabel getArgLabel()
public ModLabel getModLabel()
ModLabelpublic boolean hasModLabel()
ModLabelpublic List getVNRoles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||