mirror of https://github.com/apache/lucene.git
LUCENE-6730: Hyper-parameter c is ignored in term frequency NormalizationH1
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5af08f7211
commit
1e0e15af6c
|
@ -61,6 +61,11 @@ Optimizations
|
|||
* LUCENE-6720: ValueSourceScorer, returned from
|
||||
FunctionValues.getRangeScorer(), now uses TwoPhaseIterator. (David Smiley)
|
||||
|
||||
Bug Fixes
|
||||
|
||||
* LUCENE-6730: Hyper-parameter c is ignored in term frequency NormalizationH1.
|
||||
(Ahmet Arslan via Robert Muir)
|
||||
|
||||
Other
|
||||
|
||||
* LUCENE-6174: Improve "ant eclipse" to select right JRE for building.
|
||||
|
|
|
@ -48,7 +48,7 @@ public class NormalizationH1 extends Normalization {
|
|||
|
||||
@Override
|
||||
public final float tfn(BasicStats stats, float tf, float len) {
|
||||
return tf * stats.getAvgFieldLength() / len;
|
||||
return tf * c * stats.getAvgFieldLength() / len;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue