edu.cmu.minorthird.classify.sequential
Class CMMTweaker

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.CMMTweaker
All Implemented Interfaces:
SequenceConstants

public class CMMTweaker
extends java.lang.Object
implements SequenceConstants

Adjust the precision-recall of a CMM that is based on an array of hyperplanes, by adjusting the bias term of the hyperplane associated with the background (NEG) class. This is intended mainly for adjusting precision-recall performance of extractors learned by CollinsPerceptronLearner and CRFLearner.

Author:
William Cohen

Field Summary
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
CMMTweaker()
           
 
Method Summary
 double newBias()
          Return the value of bias term after tweaking.
 double oldBias()
          Return the value of bias term before the last tweak.
 CMM tweak(CMM cmm, double bias)
          Return a copy of a CMM in which the one bias term, for the hyperplane corresponding to the NEG class, has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMMTweaker

public CMMTweaker()
Method Detail

oldBias

public double oldBias()
Return the value of bias term before the last tweak.


newBias

public double newBias()
Return the value of bias term after tweaking.


tweak

public CMM tweak(CMM cmm,
                 double bias)
Return a copy of a CMM in which the one bias term, for the hyperplane corresponding to the NEG class, has been changed. The original CMM will not be modified.