public class BasicModelD extends BasicModel
N
and
F
, N
is increased by 1
and
F
is always increased by tfn+1
.
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.
Constructor and Description |
---|
BasicModelD()
Sole constructor: parameter-free
|
Modifier and Type | Method and Description |
---|---|
float |
score(BasicStats stats,
float tfn)
Returns the informative content score.
|
String |
toString()
Subclasses must override this method to return the code of the
basic model formula.
|
explain
public final float score(BasicStats stats, float tfn)
BasicModel
score
in class BasicModel
public String toString()
BasicModel
toString
in class BasicModel
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.