(*) Remove accidental commit of debug logging

This commit is contained in:
Viktor Lofgren 2024-01-03 14:32:00 +01:00
parent 0806aa6dfe
commit 0b9f3d1751

View File

@ -80,14 +80,6 @@ public class ResultValuator {
temporalBias = 0; temporalBias = 0;
} }
logger.info("averageSentenceLengthPenalty: " + averageSentenceLengthPenalty);
logger.info("documentLengthPenalty: " + documentLengthPenalty);
logger.info("qualityPenalty: " + qualityPenalty);
logger.info("rankingBonus: " + rankingBonus);
logger.info("topologyBonus: " + topologyBonus);
logger.info("temporalBias: " + temporalBias);
logger.info("flagsPenalty: " + flagsPenalty);
double overallPart = averageSentenceLengthPenalty double overallPart = averageSentenceLengthPenalty
+ documentLengthPenalty + documentLengthPenalty
+ qualityPenalty + qualityPenalty
@ -120,22 +112,9 @@ public class ResultValuator {
double overallPartPositive = Math.max(0, overallPart); double overallPartPositive = Math.max(0, overallPart);
double overallPartNegative = -Math.min(0, overallPart); double overallPartNegative = -Math.min(0, overallPart);
logger.info("bestTcf: " + bestTcf);
logger.info("bestBM25F: " + bestBM25F);
logger.info("bestBM25P: " + bestBM25P);
logger.info("bestBM25PN: " + bestBM25PN);
logger.info("overallPartPositive: " + overallPartPositive);
logger.info("overallPartNegative: " + overallPartNegative);
// Renormalize to 0...15, where 0 is the best possible score; // Renormalize to 0...15, where 0 is the best possible score;
// this is a historical artifact of the original ranking function // this is a historical artifact of the original ranking function
double ret = normalize(1.5 * bestTcf + bestBM25F + bestBM25P + 0.25 * bestBM25PN + overallPartPositive, overallPartNegative); return normalize(1.5 * bestTcf + bestBM25F + bestBM25P + 0.25 * bestBM25PN + overallPartPositive, overallPartNegative);
logger.info("ret: " + ret);
return ret;
} }
private double calculateQualityPenalty(int size, int quality, ResultRankingParameters rankingParams) { private double calculateQualityPenalty(int size, int quality, ResultRankingParameters rankingParams) {