public class CategoryWordTagFactory extends java.lang.Object implements LabelFactory
CategoryWordTagFactory is a factory that makes
a Label which is a CategoryWordTag triplet.| Constructor and Description |
|---|
CategoryWordTagFactory() |
| Modifier and Type | Method and Description |
|---|---|
Label |
newLabel(Label oldLabel)
Create a new
CategoryWordTag Label, where the label is
formed from
the Label object passed in. |
Label |
newLabel(java.lang.String labelStr)
Make a new label with this
String as the "name". |
Label |
newLabel(java.lang.String labelStr,
int options)
Make a new label with this
String as the value. |
Label |
newLabel(java.lang.String word,
java.lang.String tag,
java.lang.String category)
Create a new CategoryWordTag label, where the label is formed from
the various
String objects passed in. |
Label |
newLabelFromString(java.lang.String labelStr)
Make a new label with this
String as the "name". |
public Label newLabel(java.lang.String labelStr)
String as the "name".newLabel in interface LabelFactorylabelStr - The string to use as a labelpublic Label newLabel(java.lang.String labelStr, int options)
String as the value.
This implementation ignores the optionsnewLabel in interface LabelFactorylabelStr - The String that will be used for balueoptions - This argument is ignoredpublic Label newLabelFromString(java.lang.String labelStr)
String as the "name".newLabelFromString in interface LabelFactorylabelStr - The string to use as a labelpublic Label newLabel(java.lang.String word, java.lang.String tag, java.lang.String category)
String objects passed in.word - The word part of the labeltag - The tag part of the labelcategory - The category part of the labelpublic 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 LabelFactoryoldLabel - The Label that the new label is being created from