edu.stanford.nlp.classify
Class VocabBuilder

java.lang.Object
  |
  +--edu.stanford.nlp.classify.VocabBuilder

public class VocabBuilder
extends Object

Takes a ProbabilitySet and builds a hash table that contains the entire vocabulary. This hash table can then be used for smoothing.


Constructor Summary
VocabBuilder(ProbabilitySet features)
          Constructor.
 
Method Summary
 HashMap build()
          Builds and returns the HashMap.
 int getSize()
          Returns the size of the vocabulary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabBuilder

public VocabBuilder(ProbabilitySet features)
Constructor.

Method Detail

build

public HashMap build()
Builds and returns the HashMap.


getSize

public int getSize()
Returns the size of the vocabulary.



Stanford NLP Group