|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ling.StringLabelFactory
public class StringLabelFactory
A StringLabelFactory object makes a simple
StringLabel out of a String.
| Constructor Summary | |
|---|---|
StringLabelFactory()
|
|
| Method Summary | |
|---|---|
Label |
newLabel(Label oldLabel)
Create a new StringLabel, where the label is
formed from
the Label object passed in. |
Label |
newLabel(String labelStr)
Make a new label with this String as the "name". |
Label |
newLabel(String labelStr,
int options)
Make a new label with this String as the "name". |
Label |
newLabelFromString(String labelStr)
Make a new label with this String as the "name". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringLabelFactory()
| Method Detail |
|---|
public Label newLabel(String labelStr)
String as the "name".
newLabel in interface LabelFactorylabelStr - A string that determines the content of the label.
For a StringLabel, it is exactly the given string
public Label newLabel(String labelStr,
int options)
String as the "name".
newLabel in interface LabelFactorylabelStr - A string that determines the content of the label.
For a StringLabel, it is exactly the given stringoptions - The options are ignored by a StringLabelFactory
public Label newLabelFromString(String labelStr)
String as the "name".
This version does no decoding -- StringLabels just have a value.
newLabelFromString in interface LabelFactorylabelStr - A string that determines the content of the label.
For a StringLabel, it is exactly the given string
public Label newLabel(Label oldLabel)
StringLabel, where the label is
formed from
the Label object passed in. Depending on what fields
each label has, other things will be null.
newLabel in interface LabelFactoryoldLabel - The Label that the new label is being created from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||