public class BasicModelD extends BasicModelImplements the approximation of the binomial model with the divergence for DFR. The formula used in Lucene differs slightly from the one in the original paper: to avoid underflow for small values of
Nis increased by
Fis always increased by
WARNING: for terms that do not meet the expected random distribution (e.g. stopwords), this model may give poor performance, such as abnormally high or NaN scores for low tf values.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Constructors Constructor Description
BasicModelD()Sole constructor: parameter-free
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
score(BasicStats stats, float tfn)Returns the informative content score.
toString()Subclasses must override this method to return the code of the basic model formula.
public final float score(BasicStats stats, float tfn)Description copied from class:
BasicModelReturns the informative content score.