edu.stanford.nlp.process
Class NumberFeature

java.lang.Object
  |
  +--edu.stanford.nlp.process.NumberFeature
All Implemented Interfaces:
Feature, Serializable

public class NumberFeature
extends Object
implements Feature

Provides a partition over the set of possible unseen words that corresponds to the formatting of numbers in the word. Uses the NumberFeatureValue class as possible values.

Author:
Teg Grenager grenager@cs.stanford.edu
See Also:
Serialized Form

Constructor Summary
NumberFeature()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFeature

public NumberFeature()
Method Detail

allValues

public FeatureValue[] allValues()
Description copied from interface: Feature
An array of all possible FeatureValues for this Feature.

Specified by:
allValues in interface Feature

numValues

public int numValues()
Description copied from interface: Feature
The number of possible FeatureValues for this Feature.

Specified by:
numValues in interface Feature

getValue

public FeatureValue getValue(String s)
Description copied from interface: Feature
This returns the FeatureValue of the String s for this Feature.

Specified by:
getValue in interface Feature


Stanford NLP Group