Class Bm25 (1.67.0)

Bm25(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
multilingual bool
Optional. Use multilingual tokenizer if set to true.
k1 float
Optional. The parameter to control term frequency saturation. It determines the scaling between the matching term frequency and final score. k1 is in the range of [1.2, 3]. The default value is 1.2. This field is a member of oneof_ _k1.
b float
Optional. The parameter to control document length normalization. It determines how much the document length affects the final score. b is in the range of [0, 1]. The default value is 0.75. This field is a member of oneof_ _b.

Methods

Bm25

Bm25(mapping=None, *, ignore_unknown_fields=False, **kwargs)