public class AxiomaticF1EXP extends Axiomatic
Similarity.SimScorer
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 double |
gamma(BasicStats stats,
double freq,
double docLen)
compute the gamma component
|
protected double |
idf(BasicStats stats,
double freq,
double docLen)
compute the inverted document frequency component
|
protected Explanation |
idfExplain(BasicStats stats,
double freq,
double docLen)
Explain the score of the inverted document frequency component
for a single document
|
protected double |
ln(BasicStats stats,
double freq,
double docLen)
compute the document length component
|
protected Explanation |
lnExplain(BasicStats stats,
double freq,
double docLen)
Explain the score of the document length component for a single document
|
protected double |
tf(BasicStats stats,
double freq,
double docLen)
compute the term frequency component
|
protected Explanation |
tfExplain(BasicStats stats,
double freq,
double docLen)
Explain the score of the term frequency component for a single document
|
protected double |
tfln(BasicStats stats,
double freq,
double docLen)
compute the mixed term frequency and document length component
|
protected Explanation |
tflnExplain(BasicStats stats,
double freq,
double docLen)
Explain the score of the mixed term frequency and
document length component for a single document
|
String |
toString()
Name of the axiomatic method.
|
explain, explain, score
computeNorm, fillBasicStats, getDiscountOverlaps, log2, newStats, scorer, setDiscountOverlaps
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 double tf(BasicStats stats, double freq, double docLen)
protected double ln(BasicStats stats, double freq, double docLen)
protected double tfln(BasicStats stats, double freq, double docLen)
protected double idf(BasicStats stats, double freq, double docLen)
protected double gamma(BasicStats stats, double freq, double docLen)
protected Explanation tfExplain(BasicStats stats, double freq, double docLen)
Axiomatic
protected Explanation lnExplain(BasicStats stats, double freq, double docLen)
Axiomatic
protected Explanation tflnExplain(BasicStats stats, double freq, double docLen)
Axiomatic
tflnExplain
in class Axiomatic
stats
- the corpus level statisticsfreq
- number of occurrences of term in the documentdocLen
- the document lengthprotected Explanation idfExplain(BasicStats stats, double freq, double docLen)
Axiomatic
idfExplain
in class Axiomatic
stats
- the corpus level statisticsfreq
- number of occurrences of term in the documentdocLen
- the document lengthCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.