|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanbikel.parser.DefaultWordFactory
public class DefaultWordFactory
The default—and currently only—implementation of
WordFactory. This factory constructed Word instances.
| Constructor Summary | |
|---|---|
DefaultWordFactory()
Creates a word factory for constructing Word objects. |
|
| Method Summary | |
|---|---|
Word |
get(Sexp s)
Constructs a Word object from the specified S-expression, which
must be a list of length 2 or greater, where the first two elements are
symbols. |
Word |
get(Symbol word,
Symbol tag)
Constructs a Word object from the specified symbols. |
Word |
get(Symbol word,
Symbol tag,
Symbol features)
Constructs a Word object from the specified symbols. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWordFactory()
Word objects.
| Method Detail |
|---|
public Word get(Sexp s)
WordFactoryWord object from the specified S-expression, which
must be a list of length 2 or greater, where the first two elements are
symbols. The first symbol is the actual word, the second its
part-of-speech tag and a third, if present, is the word's features-vector.
get in interface WordFactorys - the S-expression from which to construct a Word object
Word objectWordFeatures
public Word get(Symbol word,
Symbol tag)
WordFactoryWord object from the specified symbols.
get in interface WordFactoryword - the word itselftag - the word's part-of-speech tag
Word object
public Word get(Symbol word,
Symbol tag,
Symbol features)
WordFactoryWord object from the specified symbols.
get in interface WordFactoryword - the word itselftag - the word's part-of-speech tagfeatures - the word's feature vector
Word objectWordFeatures
|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||