de.fu_berlin.ties.extract.reestimate
Class RootLengthEstimator

java.lang.Object
  extended by de.fu_berlin.ties.extract.reestimate.Reestimator
      extended by de.fu_berlin.ties.extract.reestimate.LengthEstimator
          extended by de.fu_berlin.ties.extract.reestimate.RootLengthEstimator

public class RootLengthEstimator
extends LengthEstimator

A LengthEstimator that uses the rounded square root of the length (token count) instead of the raw token count. This representation reduced data sparseness and can be considered as a kind of smoothing.

Version:
$Revision: 1.5 $, $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
RootLengthEstimator(Reestimator precReestimator, TiesConfiguration config)
          Creates a new instance.
 
Method Summary
protected  double doReestimate(String type, int length)
          Re-estimates the probability of an extraction, based on on an type and length.
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.LengthEstimator
doReestimate, doTrain
 
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

RootLengthEstimator

public RootLengthEstimator(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 double doReestimate(String type,
                              int length)
Re-estimates the probability of an extraction, based on on an type and length.

Overrides:
doReestimate in class LengthEstimator
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(String type,
                       int length)
Trains this re-estimator of an extraction, based on on an type and length.

Overrides:
doTrain in class LengthEstimator
Parameters:
type - the type of the extraction
length - the number of tokens contained in the extraction


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