edu.stanford.nlp.process
Class NumAndCapFeature

java.lang.Object
  extended byedu.stanford.nlp.process.NumAndCapFeature
All Implemented Interfaces:
Feature, Serializable

public class NumAndCapFeature
extends Object
implements Feature

Provides a partition over the set of possible unseen words that corresponds to the capitalization and inclusion of numbers in the word. Uses the NumAndCapFeatureValue class as possible values.

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

Constructor Summary
NumAndCapFeature()
           
 
Method Summary
 FeatureValue[] allValues()
          Returns each possible feature in an array.
 FeatureValue getValue(String s)
          Use this to get the value of a String s.
static void main(String[] args)
           
 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

NumAndCapFeature

public NumAndCapFeature()
Method Detail

numValues

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

Specified by:
numValues in interface Feature

allValues

public FeatureValue[] allValues()
Returns each possible feature in an array. Not for external use.

Specified by:
allValues in interface Feature

getValue

public FeatureValue getValue(String s)
Use this to get the value of a String s.

Specified by:
getValue in interface Feature

main

public static void main(String[] args)


Stanford NLP Group