edu.upenn.cis.propbank_shen
Class ArgLabel

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

public final class ArgLabel
extends Object

An Argument Label represents the information ascribed to an argument in a predicate-argument structure. A Basic Argument label just ascribes a number, such as Arg0, Arg1, .... There is also ArgM for a modifying argument, and ArgA for a causative agent.

Author:
Scott Cotton
See Also:
PAStruct

Field Summary
static ArgLabel ARG0
          Numbered arguments
static ArgLabel ARG1
           
static ArgLabel ARG2
           
static ArgLabel ARG3
           
static ArgLabel ARG4
           
static ArgLabel ARG5
           
static ArgLabel ARG6
           
static ArgLabel ARG7
           
static ArgLabel ARG8
           
static ArgLabel ARG9
           
static ArgLabel ARGA
          Causative agent.
static ArgLabel ARGM
          Modifying argument -- an adjunct in the argument/adjuct "distinction"
static String prefix
           
static ArgLabel REL
          this label is used for the predicating verb.
static ArgLabel TBERR
          This label is used by our annotators whenever they feel the predicate argument structure cannot be annotated correctly due to an error in the treebank.
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          get the name associated with the label all labels have names.
 int getNum()
          get the numbner associated with the label, if the number is meaningless, return -1
 boolean isArgA()
           
 boolean isArgM()
           
 boolean isArgument()
           
 boolean isNumbered()
           
 boolean isRel()
           
static ArgLabel ofString(String s)
          create an argument from a string of the form "ArgX" where X is either "M", "A", or an integer.
 String toString()
          create a string representation of the argument label.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

prefix

public static String prefix

ARGM

public static final ArgLabel ARGM
Modifying argument -- an adjunct in the argument/adjuct "distinction"


ARGA

public static final ArgLabel ARGA
Causative agent. A Causative agent is an extra agent, such as the general in the sentence
The general marches the soldiers around the barracks.


REL

public static final ArgLabel REL
this label is used for the predicating verb. It is present not so much as an argument as to provide a slot in which to identify the location of the verb, which can be tricky when there are phrasals and what not.


TBERR

public static final ArgLabel TBERR
This label is used by our annotators whenever they feel the predicate argument structure cannot be annotated correctly due to an error in the treebank.


ARG0

public static final ArgLabel ARG0
Numbered arguments


ARG1

public static final ArgLabel ARG1

ARG2

public static final ArgLabel ARG2

ARG3

public static final ArgLabel ARG3

ARG4

public static final ArgLabel ARG4

ARG5

public static final ArgLabel ARG5

ARG6

public static final ArgLabel ARG6

ARG7

public static final ArgLabel ARG7

ARG8

public static final ArgLabel ARG8

ARG9

public static final ArgLabel ARG9
Method Detail

toString

public String toString()
create a string representation of the argument label.

Overrides:
toString in class Object

ofString

public static ArgLabel ofString(String s)
                         throws CorruptDataException
create an argument from a string of the form "ArgX" where X is either "M", "A", or an integer.

Parameters:
s - the string from which the resulting arg label is made
Throws:
CorruptDataException

isRel

public boolean isRel()

isArgM

public boolean isArgM()

isArgA

public boolean isArgA()

isNumbered

public boolean isNumbered()

isArgument

public boolean isArgument()

getNum

public int getNum()
get the numbner associated with the label, if the number is meaningless, return -1


getName

public String getName()
get the name associated with the label all labels have names.


equals

public boolean equals(Object o)
Overrides:
equals in class Object