|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.international.icegb.ICEGBLabel
public class ICEGBLabel
An object for labels as implemented in the ICE-GB corpus. The label includes a category, a function and a List of features
Constructor Summary | |
---|---|
ICEGBLabel()
|
|
ICEGBLabel(Label oldLabel)
|
|
ICEGBLabel(String str)
|
Method Summary | |
---|---|
String |
category()
Return the category value of the label (or null if none). |
Set |
features()
Retrieves the feature values |
String |
function()
Retrieves the functional category |
LabelFactory |
labelFactory()
Returns a factory that makes ICEGBLabel s. |
static void |
main(String[] args)
test only |
void |
setCategory(String cat)
Set the category value for the label (if one is stored). |
void |
setFeatures(Set feat)
Sets the feature values |
void |
setFromString(String str)
Set the contents of this label to this String
representing the
complete contents of the label. |
void |
setFunction(String function)
Sets the functional category |
void |
setValue(String val)
Set the value for the label (if one is stored). |
void |
setWord(String word)
|
String |
toString()
Return a String representation of the label. |
String |
value()
Return a String representation of just the "main" value of this label. |
String |
word()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ICEGBLabel()
public ICEGBLabel(Label oldLabel)
public ICEGBLabel(String str)
Method Detail |
---|
public String category()
HasCategory
category
in interface HasCategory
public String value()
Label
value
in interface Label
public void setCategory(String cat)
HasCategory
setCategory
in interface HasCategory
cat
- The category value for the labelpublic void setValue(String val)
Label
setValue
in interface Label
val
- - the value for the labelpublic void setFunction(String function)
public String function()
public void setWord(String word)
public String word()
public void setFromString(String str)
Label
String
representing the
complete contents of the label. A class implementing label may
throw an UnsupportedOperationException
for this
method (only). Typically, this method would do
some appropriate decoding of the string in a way that sets
multiple fields in an inverse of the toString()
method.
setFromString
in interface Label
str
- the String that translates into the content of the
labelpublic void setFeatures(Set feat)
public Set features()
public LabelFactory labelFactory()
ICEGBLabel
s.
labelFactory
in interface Label
public String toString()
Label
toString()
method
causes a label to spill its guts. It should always return an
empty string rather than null
if there is no value.
toString
in interface Label
toString
in class Object
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |