|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.BasicModel
public abstract class BasicModel
This class acts as the base class for the specific basic model implementations in the DFR framework. Basic models compute the informative content Inf1 = -log2Prob1 .
DFRSimilarity
Constructor Summary | |
---|---|
BasicModel()
Sole constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicModel()
Method Detail |
---|
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.
public abstract String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |