public class Bm25 extends ScoringModel
Constructor and Description |
---|
Bm25() |
Modifier and Type | Method and Description |
---|---|
float |
computeDocumentWeight(float doc_tf,
float df,
int doc_len) |
float |
computeDocumentWeight(int doc_tf,
int doc_len) |
float |
computeQueryWeight(int q_tf,
int q_len) |
float |
computeScore(int q_tf,
int doc_tf,
int q_len,
int doc_len) |
computeDocumentWeight, computeQueryWeight, computeScore, setAvgDocLength, setDF, setDocCount
public float computeDocumentWeight(float doc_tf, float df, int doc_len)
public float computeDocumentWeight(int doc_tf, int doc_len)
computeDocumentWeight
in class ScoringModel
public float computeQueryWeight(int q_tf, int q_len)
computeQueryWeight
in class ScoringModel
public float computeScore(int q_tf, int doc_tf, int q_len, int doc_len)
computeScore
in class ScoringModel