edu.upenn.cis.propbank_shen
Class ModLabel

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

public final class ModLabel
extends Object

A class emulating an enumeration of labels representing "modifiers" in the propbank. Even though there is obviously a vast amount of overlap between the denotation of the labels, a single modifier is chosen as the appropriate annotation if it is deemed "the most" appropriate. I don't think this distinction is at all well defined, but it is common practice in this field and what the linguists want.

Author:
Scott Cotton

Field Summary
static ModLabel ADV
           
static ModLabel CAU
           
static ModLabel DIR
           
static ModLabel EXT
           
static ModLabel LOC
           
static ModLabel MNR
           
static ModLabel MOD
           
static ModLabel PNC
           
static ModLabel PRD
           
static ModLabel PRP
           
static ModLabel REC
           
static ModLabel STR
           
static ModLabel TMP
           
 
Method Summary
 boolean equals(Object label)
           
 String getDescription()
          Return a brief english description of the associated label
static ModLabel ofString(String s)
          Given a string, return the associated ModLabel
 ModLabel prepMod(String prep)
           
 String toString()
          Convert a ModLabel to a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXT

public static final ModLabel EXT

LOC

public static final ModLabel LOC

DIR

public static final ModLabel DIR

MOD

public static final ModLabel MOD

ADV

public static final ModLabel ADV

MNR

public static final ModLabel MNR

PRD

public static final ModLabel PRD

REC

public static final ModLabel REC

TMP

public static final ModLabel TMP

PRP

public static final ModLabel PRP

PNC

public static final ModLabel PNC

CAU

public static final ModLabel CAU

STR

public static final ModLabel STR
Method Detail

prepMod

public final ModLabel prepMod(String prep)

toString

public final String toString()
Convert a ModLabel to a string

Overrides:
toString in class Object

ofString

public static final ModLabel ofString(String s)
Given a string, return the associated ModLabel

Parameters:
s - the string to be converted to a ModLabel

equals

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

getDescription

public final String getDescription()
Return a brief english description of the associated label