Package 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
-
-
Field Summary
-
Fields inherited from class cc.mallet.classify.Classifier
instancePipe
-
-
Constructor Summary
Constructors Constructor Description PRAuxClassifier(Pipe pipe, java.util.ArrayList<MaxEntPRConstraint> constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classification
classify(Instance instance)
void
getClassificationProbs(Instance instance, double[] scores)
void
getClassificationScores(Instance instance, double[] scores)
java.util.ArrayList<MaxEntPRConstraint>
getConstraintFeatures()
double[][]
getParameters()
void
zeroExpectations()
-
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
-
-
-
-
Constructor Detail
-
PRAuxClassifier
public PRAuxClassifier(Pipe pipe, java.util.ArrayList<MaxEntPRConstraint> constraints)
-
-
Method Detail
-
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 classClassifier
-
getParameters
public double[][] getParameters()
-
getConstraintFeatures
public java.util.ArrayList<MaxEntPRConstraint> getConstraintFeatures()
-
zeroExpectations
public void zeroExpectations()
-
-