Class LegacyBM25Similarity

    • Constructor Detail

      • LegacyBM25Similarity

        public LegacyBM25Similarity()
        Deprecated.
        BM25 with these default values:
        • k1 = 1.2
        • b = 0.75
      • LegacyBM25Similarity

        public LegacyBM25Similarity​(float k1,
                                    float b)
        Deprecated.
        BM25 with the supplied parameter values.
        Parameters:
        k1 - Controls non-linear term frequency normalization (saturation).
        b - Controls to what degree document length normalizes tf values.
        Throws:
        IllegalArgumentException - if k1 is infinite or negative, or if b is not within the range [0..1]