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 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.
|
explainpublic final float score(BasicStats stats, float tfn)
BasicModelscore in class BasicModelpublic String toString()
BasicModeltoString in class BasicModelCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.