public class BM25ScoringFunction extends ScoringFunction
Constructor and Description |
---|
BM25ScoringFunction() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Node domNode)
Configures this scoring function.
|
float |
getMaxScore()
Returns the maximum possible score.
|
float |
getMinScore()
Returns the minimum possible score.
|
float |
getScore(int tf,
int docLen)
Computes score.
|
void |
initialize(GlobalTermEvidence termEvidence,
GlobalEvidence globalEvidence)
Initializes this scoring function with global evidence.
|
void |
setB(float b)
Sets the b parameter.
|
void |
setK1(float k1)
Sets the k1 parameter.
|
String |
toString() |
create, getGlobalEvidence, getGlobalTermEvidence
public void configure(Node domNode)
ScoringFunction
configure
in class ScoringFunction
domNode
- DOM node containing configuration datapublic float getMaxScore()
ScoringFunction
getMaxScore
in class ScoringFunction
public float getMinScore()
ScoringFunction
getMinScore
in class ScoringFunction
public float getScore(int tf, int docLen)
ScoringFunction
getScore
in class ScoringFunction
public void initialize(GlobalTermEvidence termEvidence, GlobalEvidence globalEvidence)
ScoringFunction
initialize
in class ScoringFunction
termEvidence
- term evidenceglobalEvidence
- global evidencepublic void setB(float b)
b
- b parameter valuepublic void setK1(float k1)
k1
- k1 parameter value