edu.stanford.nlp.process
Interface Feature

All Superinterfaces:
Serializable
All Known Implementing Classes:
CapitalFeature, NumAndCapFeature, NumberFeature

public interface Feature
extends Serializable

This provides an interface for a feature that can be used to define a partition over the space of possible unseen words. A Feature assigns a value to an unseen word, selected from the set of possible FeatureValue. An implementation of this class must also specify an implementation of the FeatureValue interface.

Author:
Teg Grenager grenager@cs.stanford.edu

Method Summary
 FeatureValue[] allValues()
          An array of all possible FeatureValues for this Feature.
 FeatureValue getValue(String s)
          This returns the FeatureValue of the String s for this Feature.
 int numValues()
          The number of possible FeatureValues for this Feature.
 

Method Detail

numValues

public int numValues()
The number of possible FeatureValues for this Feature.


allValues

public FeatureValue[] allValues()
An array of all possible FeatureValues for this Feature.


getValue

public FeatureValue getValue(String s)
This returns the FeatureValue of the String s for this Feature.



Stanford NLP Group