public class AxiomaticF1EXP extends Axiomatic
Similarity.SimScorer, Similarity.SimWeight
discountOverlaps
Constructor and Description |
---|
AxiomaticF1EXP()
Default constructor
|
AxiomaticF1EXP(float s)
Constructor setting s only, letting k and queryLen to default
|
AxiomaticF1EXP(float s,
float k)
Constructor setting s and k, letting queryLen to default
|
Modifier and Type | Method and Description |
---|---|
protected float |
gamma(BasicStats stats,
float freq,
float docLen)
compute the gamma component
|
protected float |
idf(BasicStats stats,
float freq,
float docLen)
compute the inverted document frequency component
|
protected float |
ln(BasicStats stats,
float freq,
float docLen)
compute the document length component
|
protected float |
tf(BasicStats stats,
float freq,
float docLen)
compute the term frequency component
|
protected float |
tfln(BasicStats stats,
float freq,
float docLen)
compute the mixed term frequency and document length component
|
String |
toString()
Name of the axiomatic method.
|
computeNorm, computeWeight, explain, fillBasicStats, getDiscountOverlaps, log2, newStats, setDiscountOverlaps, simScorer
public AxiomaticF1EXP(float s, float k)
s
- hyperparam for the growth functionk
- hyperparam for the primitive weighting functionpublic AxiomaticF1EXP(float s)
s
- hyperparam for the growth functionpublic AxiomaticF1EXP()
public String toString()
Axiomatic
protected float tf(BasicStats stats, float freq, float docLen)
protected float ln(BasicStats stats, float freq, float docLen)
protected float tfln(BasicStats stats, float freq, float docLen)
protected float idf(BasicStats stats, float freq, float docLen)
protected float gamma(BasicStats stats, float freq, float docLen)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.