LambdaTTF

Computes lambda as totalTermFreq+1 / numberOfDocuments+1.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun explain(stats: BasicStats): Explanation

Explains the lambda parameter.

Link copied to clipboard
open override fun lambda(stats: BasicStats): Float

Computes the lambda parameter.

Link copied to clipboard
open override fun toString(): String

Subclasses must override this method to return the code of the lambda formula. Since the original paper is not very clear on this matter, and also uses the DFR naming scheme incorrectly, the codes here were chosen arbitrarily.