|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.trees.CategoryWordTagFactory
A CategoryWordTagFactory
is a factory that makes
a Label
which is a CategoryWordTag
triplet.
Constructor Summary | |
CategoryWordTagFactory()
|
Method Summary | |
Label |
newLabel(Label oldLabel)
Create a new CategoryWordTag Label , 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 value. |
Label |
newLabel(String word,
String tag,
String category)
Create a new CategoryWordTag label, where the label is formed from the various String objects passed in. |
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 CategoryWordTagFactory()
Method Detail |
public Label newLabel(String labelStr)
String
as the "name".
newLabel
in interface LabelFactory
labelStr
- The string to use as a label
public Label newLabel(String labelStr, int options)
String
as the value.
This implementation ignores the options
newLabel
in interface LabelFactory
labelStr
- The String that will be used for balueoptions
- This argument is ignored
public Label newLabelFromString(String labelStr)
String
as the "name".
newLabelFromString
in interface LabelFactory
labelStr
- The string to use as a label
public Label newLabel(String word, String tag, String category)
String
objects passed in.
word
- The word part of the labeltag
- The tag part of the labelcategory
- The category part of the label
public Label newLabel(Label oldLabel)
CategoryWordTag Label
, 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 LabelFactory
oldLabel
- 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 |