BM25Similarity

constructor(k1: Float = 1.2f, b: Float = 0.75f, discountOverlaps: Boolean = true)


constructor(discountOverlaps: Boolean)

BM25 with these default values:

  • k1 = 1.2

  • b = 0.75

and the supplied parameter value:

Parameters

discountOverlaps

True if overlap tokens (tokens with a position of increment of zero) are discounted from the document's length.