edu.stanford.nlp.classify
Class ClassProbBuilder
java.lang.Object
|
+--edu.stanford.nlp.classify.ClassProbBuilder
- public class ClassProbBuilder
- extends Object
Accepts a feature vector and a class id, and returns
a ClassProbability
Constructor Summary |
ClassProbBuilder(HashMap hm,
int id,
int size)
The hash map 'hm' contains all of the counts seen
for that class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassProbBuilder
public ClassProbBuilder(HashMap hm,
int id,
int size)
- The hash map 'hm' contains all of the counts seen
for that class. The id is the class id.
getCP
public ClassProbability getCP()
Stanford NLP Group