public abstract class BasicModel extends Object
DFRSimilarity
Constructor and Description |
---|
BasicModel()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
Explanation |
explain(BasicStats stats,
float tfn)
Returns an explanation for the score.
|
abstract float |
score(BasicStats stats,
float tfn)
Returns the informative content score.
|
abstract String |
toString()
Subclasses must override this method to return the code of the
basic model formula.
|
public BasicModel()
public abstract float score(BasicStats stats, float tfn)
public Explanation explain(BasicStats stats, float tfn)
Most basic models use the number of documents and the total term frequency to compute Inf1. This method provides a generic explanation for such models. Subclasses that use other statistics must override this method.
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.