public final class BM25SimilarityAlgorithm extends SimilarityAlgorithm
Constructor and Description |
---|
BM25SimilarityAlgorithm() |
Modifier and Type | Method and Description |
---|---|
Double |
getB()
Get the b property: This property controls how the length of a document affects the relevance score.
|
Double |
getK1()
Get the k1 property: This property controls the scaling function between the term frequency of each matching
terms and the final relevance score of a document-query pair.
|
BM25SimilarityAlgorithm |
setB(Double b)
Set the b property: This property controls how the length of a document affects the relevance score.
|
BM25SimilarityAlgorithm |
setK1(Double k1)
Set the k1 property: This property controls the scaling function between the term frequency of each matching
terms and the final relevance score of a document-query pair.
|
public Double getK1()
public BM25SimilarityAlgorithm setK1(Double k1)
k1
- the k1 value to set.public Double getB()
public BM25SimilarityAlgorithm setB(Double b)
b
- the b value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.