Parsing Engine

danbikel.parser
Interface WordFeatures

All Known Implementing Classes:
AbstractWordFeatures, SimpleWordFeatures, SimpleWordFeatures, SimpleWordFeatures, WordFeatures, WordFeatures

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.

See Also:
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

features

Symbol features(Symbol word,
                boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word.

Parameters:
word - the word whose features are to be computed
firstWord - whether word is the first word in the sentence (useful when computing capitalization features for certain languages, such as English)
Returns:
a symbol representing the orthographic and/or morphological features of word

defaultFeatureVector

Symbol defaultFeatureVector()
The symbol that represents the case where none of the features fires for a particular word.


Parsing Engine

Author: Dan Bikel.