|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.cis.propbank_shen.RoleSet
public class RoleSet
A representation of a RoleSet as defined in the propbank lexical guidelines, frameset.dtd.
A roleset defines a sort of coarse grained sense for a verb. When we understand a verb as an object which relates things (such as in "John gave Mary a Penny", "gave" is relating John, Mary, and "a Penny".), we'll quickly come to see that verbs may relate different kinds of things. For example, the verb "call" may be used to relate either a caller with an object and a label (in the labelling sense of call) or a caller with a thing being summoned and a place being summoned to. (in the summon sense of call (eg "John called Mary over").
We then view each of these things
Field Summary | |
---|---|
protected List |
examples
the set of examples associated with the roleset |
protected String |
id
the identifier of the roleset |
protected String |
name
the name of the roleset, optional, can be null |
protected Node |
node
the node from which a roleset is constructed |
protected List |
roles
the set of roles associated with the roleset |
protected String[] |
vnclasses
the VerbNet classes to which this roleset belongs |
Constructor Summary | |
---|---|
RoleSet(Node n)
construct a RoleSet object from a roleset node in a frameset xml document. |
Method Summary | |
---|---|
List |
getExamples()
return a list of the Example objects associated with this roleset |
String |
getId()
return the identifier associated with the roleset |
String |
getName()
return the name of this roleset, or null if there is none specified. |
List |
getRoles()
return the list of roles associated with the roleset |
String[] |
getVNClasses()
return the verbnet class ids associated with this roleset |
boolean |
hasName()
return true iff this roleset has an associated name |
static void |
main(String[] args)
A simple unit test |
static RoleSet |
ofId(String id)
create a RoleSet object from the id, where the id is in the form <verb>.NN, such as "go.01". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String id
protected String name
protected Node node
protected List roles
protected List examples
protected String[] vnclasses
Constructor Detail |
---|
public RoleSet(Node n) throws CorruptDataException
CorruptDataException
Method Detail |
---|
public static RoleSet ofId(String id) throws CorruptDataException
id
- the roleset identifier
CorruptDataException
public String getId()
public String getName()
public boolean hasName()
public String[] getVNClasses()
public List getRoles()
Role
public List getExamples()
Example
public static void main(String[] args) throws CorruptDataException
CorruptDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |