|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.extract.reestimate.Reestimator
de.fu_berlin.ties.extract.reestimate.LengthEstimator
public class LengthEstimator
Reestimates the probability of extractions based on the length (number of tokens).
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 |
---|
public LengthEstimator(Reestimator precReestimator, TiesConfiguration config)
precReestimator
- the preceding re-estimator to use if this
re-estimator is part of a chain; null
otherwiseconfig
- the configuration to useMethod Detail |
---|
protected Extraction doReestimate(Extraction extraction)
doReestimate
in class Reestimator
extraction
- the extraction to re-estimate
null
if the
extraction should be deletedprotected double doReestimate(String type, int length)
type
- the type of the extractionlength
- the number of tokens contained in the extraction
protected void doTrain(Extraction extraction)
doTrain
in class Reestimator
extraction
- the extraction to trainprotected void doTrain(String type, int length)
type
- the type of the extractionlength
- the number of tokens contained in the extraction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |