edu.stanford.nlp.trees.international.icegb
Class ICEGBLabelFactory

java.lang.Object
  extended by edu.stanford.nlp.trees.international.icegb.ICEGBLabelFactory
All Implemented Interfaces:
LabelFactory

public class ICEGBLabelFactory
extends Object
implements LabelFactory

A ICEGBLabelFactory is a factory that makes a Label which is a ICEGBLabel

Author:
Pi-Chuan Chang

Constructor Summary
ICEGBLabelFactory()
           
 
Method Summary
 Label newLabel(Label oldLabel)
          Create a new Label, where the label is formed from the Label object passed in.
 Label newLabel(String description)
          Make a new label with this String as the the whole description.
 Label newLabel(String description, int options)
          Make a new label with this String as the whole description,
 Label newLabelFromString(String description)
          Make a new label with this String as the the whole description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICEGBLabelFactory

public ICEGBLabelFactory()
Method Detail

newLabel

public Label newLabel(Label oldLabel)
Create a new Label, where the label is formed from the Label object passed in.

Specified by:
newLabel in interface LabelFactory
Parameters:
oldLabel - the old label
Returns:
the newly created label

newLabel

public Label newLabel(String description)
Make a new label with this String as the the whole description.

Specified by:
newLabel in interface LabelFactory
Parameters:
description - should be in this format: "Function,Category(Features)" or "{Word}"
Returns:
the newly created label

newLabel

public Label newLabel(String description,
                      int options)
Make a new label with this String as the whole description,

Specified by:
newLabel in interface LabelFactory
Parameters:
description - should be in this format: "Function,Category(Features)" or "{Word}"
options - this is ignored
Returns:
the newly created label

newLabelFromString

public Label newLabelFromString(String description)
Make a new label with this String as the the whole description.

Specified by:
newLabelFromString in interface LabelFactory
Parameters:
description - should be in this format: "Function,Category(Features)" or "{Word}"
Returns:
the newly created label


Stanford NLP Group