public class CategoryWordTagFactory extends 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(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". |
public Label newLabel(String labelStr)
String
as the "name".newLabel
in interface LabelFactory
labelStr
- The string to use as a labelpublic Label newLabel(String labelStr, int options)
String
as the value.
This implementation ignores the optionsnewLabel
in interface LabelFactory
labelStr
- The String that will be used for balueoptions
- This argument is ignoredpublic Label newLabelFromString(String labelStr)
String
as the "name".newLabelFromString
in interface LabelFactory
labelStr
- The string to use as a labelpublic 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 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 LabelFactory
oldLabel
- The Label that the new label is being created from