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 .
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class BasicModel : object
Constructors
Name | Description |
---|---|
BasicModel() | Sole constructor. (For invocation by subclass constructors, typically implicit.) |
Methods
Name | Description |
---|---|
Explain(BasicStats, Single) | Returns an explanation for the score. 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. |
Score(BasicStats, Single) | Returns the informative content score. |
ToString() | Subclasses must override this method to return the code of the basic model formula. Refer to the original paper for the list. |