edu.stanford.nlp.classify
Class GTPreparer
java.lang.Object
|
+--edu.stanford.nlp.classify.GTPreparer
- public class GTPreparer
- extends Object
This class prepares the ProbabilitySet to_be_smooted
for smoothing, and calls the Good Turing smoother
Constructor Summary |
GTPreparer(ProbabilitySet to_be_smoothed,
HashMap my_vocab)
Constructor: takes the ProbabilitySet that should be smoothed, and
the HashMap that contains the total vocabulary. |
Method Summary |
ProbabilitySet |
smooth()
Prepares the necessary frequencies and calls the smoother, returning
the smoothed ProbabilitySet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GTPreparer
public GTPreparer(ProbabilitySet to_be_smoothed,
HashMap my_vocab)
- Constructor: takes the ProbabilitySet that should be smoothed, and
the HashMap that contains the total vocabulary.
smooth
public ProbabilitySet smooth()
- Prepares the necessary frequencies and calls the smoother, returning
the smoothed ProbabilitySet.
Stanford NLP Group