|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.cis.propbank_shen.PAStruct
public class PAStruct
A class representing an instance of predicate argument structure.
Argument
Field Summary | |
---|---|
protected List |
arguments
the arguments associated with the structure, including the verb itself |
protected String |
lemma
the predicate itself, i.e., the root form of the verb in question |
Constructor Summary | |
---|---|
PAStruct(String lem)
construct a PAStruct object from the lemma |
Method Summary | |
---|---|
void |
addArg(Argument a)
Add a single argument to the arguments associated with this PA structures. |
boolean |
equals(Object o)
Checks whether the PAstructs are equivalent. |
List |
getArgs()
return a list of arguments, including the verb itself |
String |
getLemma()
return the lemma, eg the root form of the associated verb. |
int |
hashCode()
|
Argument |
nthArg(int n)
get the nth argument |
static PAStruct |
ofString(String s)
create a predicate argument structure from a canonical string |
void |
removeArg(Argument a)
remove the argument that is the same as a |
void |
removeArg(int i)
remove the argument at position i. |
int |
size()
The number of arguments |
String |
toString()
convert the predicate argument structure to a canonical string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List arguments
protected String lemma
Constructor Detail |
---|
public PAStruct(String lem)
Method Detail |
---|
public String getLemma()
public List getArgs()
Argument
public void addArg(Argument a)
public Argument nthArg(int n)
n
- the n'th argumentpublic void removeArg(int i)
public void removeArg(Argument a)
a
- argument to be removedpublic int size()
public String toString()
toString
in class Object
public static PAStruct ofString(String s) throws CorruptDataException
s
- the canonical string of the argument.
CorruptDataException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |