de.fu_berlin.ties.extract.reestimate
Class RootLengthEstimator
java.lang.Object
de.fu_berlin.ties.extract.reestimate.Reestimator
de.fu_berlin.ties.extract.reestimate.LengthEstimator
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
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. |
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
otherwiseconfig
- the configuration to use
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 extractionlength
- 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 extractionlength
- the number of tokens contained in the extraction
Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.