edu.cmu.minorthird.text.learn
Class ExtractorTweaker

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.ExtractorTweaker

public class ExtractorTweaker
extends java.lang.Object

Allows one to adjust the parameters of a learned extractor.

Author:
William Cohen

Nested Class Summary
 class ExtractorTweaker.MyCLP
           
 
Constructor Summary
ExtractorTweaker()
           
 
Method Summary
 CommandLineProcessor getCLP()
           
 double getNewBias()
          Return the value of bias term after the last tweak.
 double getOldBias()
          Return the value of bias term before the last tweak.
static void main(java.lang.String[] args)
           
 ExtractorAnnotator tweak(ExtractorAnnotator annotator, double bias)
          Return a modified copy of the annotator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractorTweaker

public ExtractorTweaker()
Method Detail

getOldBias

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


getNewBias

public double getNewBias()
Return the value of bias term after the last tweak.


tweak

public ExtractorAnnotator tweak(ExtractorAnnotator annotator,
                                double bias)
Return a modified copy of the annotator. Only works for annotators learned by the voted perceptron and/or CRF learners.


getCLP

public CommandLineProcessor getCLP()

main

public static void main(java.lang.String[] args)