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, getGlobalTermEvidencepublic void configure(Node domNode)
ScoringFunctionconfigure in class ScoringFunctiondomNode - DOM node containing configuration datapublic float getMaxScore()
ScoringFunctiongetMaxScore in class ScoringFunctionpublic float getMinScore()
ScoringFunctiongetMinScore in class ScoringFunctionpublic float getScore(int tf,
int docLen)
ScoringFunctiongetScore in class ScoringFunctionpublic void initialize(GlobalTermEvidence termEvidence, GlobalEvidence globalEvidence)
ScoringFunctioninitialize in class ScoringFunctiontermEvidence - term evidenceglobalEvidence - global evidencepublic void setB(float b)
b - b parameter valuepublic void setK1(float k1)
k1 - k1 parameter value