edu.upenn.cis.propbank_shen
Class FrameSet

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

public class FrameSet
extends Object

This is an interface to a frameset as defined in the propbank lexical guidelines. A frameset is associated with a single verb, and contains a list of "predicates", defined to be the verb itself plus any phrasal variants which constitute a distinct meaning.

Author:
Scott Cotton
See Also:
Predicate, RoleSet, Example, Role

Field Summary
protected  Document doc
          the xml document associated with the verb
protected  List predicates
          a list of the associated predicates for this verb
protected  String verb
          the root form of the verb
 
Constructor Summary
FrameSet(String v)
          construct a FrameSet object from the root form of a verb This constructor reads an xml file from disk and always returns the same object from the same arguments.
 
Method Summary
static File getPath(String verb)
          Find the file for the lexical guidelines for a verb.
 List getPredicates()
          return a list of Predicate objects see
 String getVerb()
          return the verb associated with this FrameSet
static void main(String[] args)
          a little unit test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verb

protected String verb
the root form of the verb


doc

protected Document doc
the xml document associated with the verb


predicates

protected List predicates
a list of the associated predicates for this verb

See Also:
Predicate
Constructor Detail

FrameSet

public FrameSet(String v)
         throws CorruptDataException
construct a FrameSet object from the root form of a verb This constructor reads an xml file from disk and always returns the same object from the same arguments.

Throws:
CorruptDataException
Method Detail

getPath

public static File getPath(String verb)
Find the file for the lexical guidelines for a verb.

Parameters:
verb - the verb whose file needs finding.

getPredicates

public List getPredicates()
return a list of Predicate objects see

See Also:
Predicate

getVerb

public String getVerb()
return the verb associated with this FrameSet


main

public static void main(String[] args)
                 throws CorruptDataException
a little unit test

Throws:
CorruptDataException