|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.ling.WordFactory
public class WordFactory
A WordFactory
acts as a factory for creating objects of
class Word
.
Constructor Summary | |
---|---|
WordFactory()
Creates a new WordFactory. |
Method Summary | |
---|---|
Label |
newLabel(Label oldLabel)
Create a new Word Label , where the label is
formed from
the Label object passed in. |
Label |
newLabel(String word)
Create a new word, where the label is formed from the String passed in. |
Label |
newLabel(String word,
int options)
Create a new word, where the label is formed from the String passed in. |
Label |
newLabelFromString(String word)
Create a new word, where the label is formed from the String passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordFactory()
Method Detail |
---|
public Label newLabel(String word)
String
passed in.
newLabel
in interface LabelFactory
word
- The word that will go into the Word
public Label newLabel(String word, int options)
String
passed in.
newLabel
in interface LabelFactory
word
- The word that will go into the Word
options
- is ignored by a WordFactory
public Label newLabelFromString(String word)
String
passed in.
newLabelFromString
in interface LabelFactory
word
- The word that will go into the Word
public Label newLabel(Label oldLabel)
Word 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 |