cc.mallet.classify
Class PRAuxClassifier
java.lang.Object
cc.mallet.classify.Classifier
cc.mallet.classify.PRAuxClassifier
- All Implemented Interfaces:
- AlphabetCarrying, java.io.Serializable
public class PRAuxClassifier
- extends Classifier
Auxiliary model (q) for E-step/I-projection in PR training.
- Author:
- Gregory Druck gdruck@cs.umass.edu
- See Also:
- Serialized Form
Methods inherited from class cc.mallet.classify.Classifier |
alphabetsMatch, classify, classify, classify, getAccuracy, getAlphabet, getAlphabets, getAverageRank, getF1, getF1, getF1, getFeatureSelection, getInstancePipe, getLabelAlphabet, getPerClassFeatureSelection, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, print, print |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRAuxClassifier
public PRAuxClassifier(Pipe pipe,
java.util.ArrayList<MaxEntPRConstraint> constraints)
getClassificationScores
public void getClassificationScores(Instance instance,
double[] scores)
getClassificationProbs
public void getClassificationProbs(Instance instance,
double[] scores)
classify
public Classification classify(Instance instance)
- Specified by:
classify
in class Classifier
getParameters
public double[][] getParameters()
getConstraintFeatures
public java.util.ArrayList<MaxEntPRConstraint> getConstraintFeatures()
zeroExpectations
public void zeroExpectations()