|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.cis.propbank_shen.Argument
public class Argument
This class represents an "argument" in a "predicate argument structure". As such, on a logical/mathematical level, one may construe an "argument" as a projection of tuple, where the tuple is an element of a relation "defined" by the verb in question. For example, the sentence
may be viewed as denoting, amongst other things, a predicate "gave" with three "arguments", as in gave(John,Sue,Penny).
In the propbank, each of these arguments is constituted by up to three things (two of which arg optional):
ArgLabel
,
ModLabel
,
ArgLoc
Field Summary | |
---|---|
ArgLabel |
arg_label
the primary argument label associated with this Argument |
ArgLoc |
location
the edu.upenn.cis.treebank location associated with this argument, or null |
ModLabel |
mod_label
the secondary label associated with this argument, or null |
static String |
sep
the separator for the parts for one-line at a time representation |
Constructor Summary | |
---|---|
Argument(ArgLabel albl)
create an Argument from just a label |
|
Argument(ArgLabel albl,
ArgLoc aloc)
create an Argument from an argument label and a location |
|
Argument(ArgLabel albl,
ModLabel mlbl)
create an Argument from an argument label and a modifiying label |
|
Argument(ArgLabel albl,
ModLabel mlbl,
ArgLoc aloc)
create an Argument from an argument label, a modifying label, and a location |
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
ArgLoc |
getLocation()
|
static Argument |
ofString(String s)
convert a string into an "argument". |
void |
setLabel(ArgLabel al)
set the argument's primary label. |
void |
setLocation(ArgLoc loc)
set the argument's location to loc |
void |
setMod(ModLabel ml)
set the arguments modifying label. |
String |
toString()
produce a canonical string from the Argument |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ArgLabel arg_label
public ModLabel mod_label
public ArgLoc location
public static final String sep
Constructor Detail |
---|
public Argument(ArgLabel albl)
public Argument(ArgLabel albl, ModLabel mlbl)
public Argument(ArgLabel albl, ArgLoc aloc)
public Argument(ArgLabel albl, ModLabel mlbl, ArgLoc aloc)
Method Detail |
---|
public int compareTo(Object o)
compareTo
in interface Comparable
public void setLocation(ArgLoc loc)
loc
- the new argument locationpublic ArgLoc getLocation()
public void setMod(ModLabel ml)
ml
- the new modifying labelpublic void setLabel(ArgLabel al)
al
- the new primary labelpublic String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public static Argument ofString(String s) throws CorruptDataException
s
- the string to be converted.
CorruptDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |