cc.mallet.classify
Class PRAuxClassifier

java.lang.Object
  extended by cc.mallet.classify.Classifier
      extended by 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
PRAuxClassifier(Pipe pipe, java.util.ArrayList<MaxEntPRConstraint> constraints)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class Classifier

getParameters

public double[][] getParameters()

getConstraintFeatures

public java.util.ArrayList<MaxEntPRConstraint> getConstraintFeatures()

zeroExpectations

public void zeroExpectations()