edu.upenn.cis.propbank_shen
Class Predicate

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

public class Predicate
extends Object

A class representing a "predicate" in the propbank frames. A predicate is either the root form of a verb, such as "go", or it is a phrasalized root form, such as "go on". Phrasalized forms have their parts joined by underscores.

Author:
Scott Cotton

Field Summary
protected  String lemma
          the lemma (root form) associate with the predicate
protected  Node node
          the node from the xml document used to create this Predicate object
static String phrasalSep
          the separator for phasal parts, here '_', so "go on" would be "go_on"
protected  List rolesets
          a list of the rolesets associated with this predicate
 
Constructor Summary
Predicate(Node n)
          construct a Predicate object from a predicate node in a frameset xml document
 
Method Summary
 String getLemma()
          return the lemma associated with this Predicate object
 List getRoleSets()
          Return a list of the rolesets associated with this Predicate object.
 boolean isPhrasal()
          return true iff this Predicate object refers to a phrasal predicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lemma

protected String lemma
the lemma (root form) associate with the predicate


node

protected Node node
the node from the xml document used to create this Predicate object


rolesets

protected List rolesets
a list of the rolesets associated with this predicate

See Also:
RoleSet

phrasalSep

public static String phrasalSep
the separator for phasal parts, here '_', so "go on" would be "go_on"

Constructor Detail

Predicate

public Predicate(Node n)
          throws CorruptDataException
construct a Predicate object from a predicate node in a frameset xml document

Throws:
CorruptDataException
Method Detail

getLemma

public String getLemma()
return the lemma associated with this Predicate object


isPhrasal

public boolean isPhrasal()
return true iff this Predicate object refers to a phrasal predicate


getRoleSets

public List getRoleSets()
Return a list of the rolesets associated with this Predicate object.