private static class BM25Similarity.BM25Stats extends Similarity.SimWeight
Modifier and Type | Field and Description |
---|---|
private float |
avgdl
The average document length.
|
private float |
boost
query boost
|
private float[] |
cache
precomputed norm[256] with k1 * ((1 - b) + b * dl / avgdl)
for both OLD_LENGTH_TABLE and LENGTH_TABLE
|
private java.lang.String |
field
field name, for pulling norms
|
private Explanation |
idf
BM25's idf
|
private float[] |
oldCache
precomputed norm[256] with k1 * ((1 - b) + b * dl / avgdl)
for both OLD_LENGTH_TABLE and LENGTH_TABLE
|
private float |
weight
weight (idf * boost)
|
Constructor and Description |
---|
BM25Stats(java.lang.String field,
float boost,
Explanation idf,
float avgdl,
float[] oldCache,
float[] cache) |
private final Explanation idf
private final float avgdl
private final float boost
private final float weight
private final java.lang.String field
private final float[] oldCache
private final float[] cache
BM25Stats(java.lang.String field, float boost, Explanation idf, float avgdl, float[] oldCache, float[] cache)