|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WordFeatures
Specifies the methods for getting a word's features in vector form, as represented by the print-name of a symbol.
A language package must provide an implementation of this interface.
AbstractWordFeatures
Method Summary | |
---|---|
Symbol |
defaultFeatureVector()
The symbol that represents the case where none of the features fires for a particular word. |
Symbol |
features(Symbol word,
boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word. |
Method Detail |
---|
Symbol features(Symbol word, boolean firstWord)
word
- the word whose features are to be computedfirstWord
- whether word
is the first word in the
sentence (useful when computing capitalization features for certain
languages, such as English)
word
Symbol defaultFeatureVector()
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |