de.fu_berlin.ties.extract.reestimate
Class LengthEstimator

java.lang.Object
  extended by de.fu_berlin.ties.extract.reestimate.Reestimator
      extended by de.fu_berlin.ties.extract.reestimate.LengthEstimator
Direct Known Subclasses:
RootLengthEstimator

public class LengthEstimator
extends Reestimator

Reestimates the probability of extractions based on the length (number of tokens).

Version:
$Revision: 1.10 $, $Date: 2006/10/21 16:04:17 $, $Author: siefkes $
Author:
Christian Siefkes

Field Summary
 
Fields inherited from class de.fu_berlin.ties.extract.reestimate.Reestimator
CONFIG_REESTIMATORS
 
Constructor Summary
LengthEstimator(Reestimator precReestimator, TiesConfiguration config)
          Creates a new instance.
 
Method Summary
protected  Extraction doReestimate(Extraction extraction)
          Re-estimates the probability of an extraction.
protected  double doReestimate(String type, int length)
          Re-estimates the probability of an extraction, based on on an type and length.
protected  void doTrain(Extraction extraction)
          Trains this re-estimator on an extraction.
protected  void doTrain(String type, int length)
          Trains this re-estimator of an extraction, based on on an type and length.
 
Methods inherited from class de.fu_berlin.ties.extract.reestimate.Reestimator
createReestimators, createReestimators, getPrecedingReestimator, reestimate, toString, train, trainOtherToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LengthEstimator

public LengthEstimator(Reestimator precReestimator,
                       TiesConfiguration config)
Creates a new instance.

Parameters:
precReestimator - the preceding re-estimator to use if this re-estimator is part of a chain; null otherwise
config - the configuration to use
Method Detail

doReestimate

protected Extraction doReestimate(Extraction extraction)
Re-estimates the probability of an extraction.

Specified by:
doReestimate in class Reestimator
Parameters:
extraction - the extraction to re-estimate
Returns:
the re-estimated extraction; or null if the extraction should be deleted

doReestimate

protected double doReestimate(String type,
                              int length)
Re-estimates the probability of an extraction, based on on an type and length.

Parameters:
type - the type of the extraction
length - the number of tokens contained in the extraction
Returns:
the re-estimation probability

doTrain

protected void doTrain(Extraction extraction)
Trains this re-estimator on an extraction.

Specified by:
doTrain in class Reestimator
Parameters:
extraction - the extraction to train

doTrain

protected void doTrain(String type,
                       int length)
Trains this re-estimator of an extraction, based on on an type and length.

Parameters:
type - the type of the extraction
length - the number of tokens contained in the extraction


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.