edu.stanford.nlp.classify
Class FeatureAdder

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

public class FeatureAdder
extends Object

This class takes a ProbabilitySet and the number of classes, and returns a new ProbabilitySet where each ClassProbability represents the probabilities for the entire class. The new ProbabilitySet also contains appropriate priors and the length of each mega-document created by amalgamating the classes. The structure assumes that the number of classes is relatively small.


Constructor Summary
FeatureAdder(int num_classes, ProbabilitySet join)
          Constructor
 
Method Summary
 ProbabilitySet compile()
          Compiles the ClassProbabilities in the ProbabilitySet join so that there is only one ClassProbability for each class (category)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureAdder

public FeatureAdder(int num_classes,
                    ProbabilitySet join)
Constructor

Method Detail

compile

public ProbabilitySet compile()
Compiles the ClassProbabilities in the ProbabilitySet join so that there is only one ClassProbability for each class (category)



Stanford NLP Group