2017-12-08 07:46:20 -05:00
|
|
|
#ifndef BASESCORINGPARAMETERS_H_
|
|
|
|
#define BASESCORINGPARAMETERS_H_
|
|
|
|
|
|
|
|
|
2017-12-11 08:44:58 -05:00
|
|
|
//base scoring/ranking parameters. Mostly weights but also a few on/off and other adjustments
|
2017-12-08 07:46:20 -05:00
|
|
|
struct BaseScoringParameters {
|
2018-04-30 09:31:44 -04:00
|
|
|
float m_languageWeights[64]; //MAX_LANGUAGES
|
2017-12-11 08:44:58 -05:00
|
|
|
|
|
|
|
float m_siteRankMultiplier;
|
|
|
|
|
|
|
|
float m_termFreqWeightFreqMin;
|
|
|
|
float m_termFreqWeightFreqMax;
|
|
|
|
float m_termFreqWeightMin;
|
|
|
|
float m_termFreqWeightMax;
|
|
|
|
|
2017-12-08 07:46:20 -05:00
|
|
|
float m_diversityWeightMin, m_diversityWeightMax;
|
|
|
|
float m_densityWeightMin, m_densityWeightMax;
|
|
|
|
float m_hashGroupWeightBody,
|
|
|
|
m_hashGroupWeightTitle,
|
|
|
|
m_hashGroupWeightHeading,
|
|
|
|
m_hashGroupWeightInlist,
|
|
|
|
m_hashGroupWeightInMetaTag,
|
|
|
|
m_hashGroupWeightInLinkText,
|
|
|
|
m_hashGroupWeightInTag,
|
|
|
|
m_hashGroupWeightNeighborhood,
|
|
|
|
m_hashGroupWeightInternalLinkText,
|
|
|
|
m_hashGroupWeightInUrl,
|
2018-01-19 08:24:01 -05:00
|
|
|
m_hashGroupWeightInMenu,
|
2018-05-25 08:51:56 -04:00
|
|
|
m_hashGroupWeightExplicitKeywords,
|
2018-06-22 10:01:03 -04:00
|
|
|
m_hashGroupWeightMidDomain,
|
2018-05-25 08:51:56 -04:00
|
|
|
m_hashGroupWeightLemma;
|
2017-12-08 07:54:15 -05:00
|
|
|
|
2017-12-11 08:44:58 -05:00
|
|
|
float m_synonymWeight;
|
|
|
|
float m_bigramWeight;
|
|
|
|
float m_pageTemperatureWeightMin;
|
|
|
|
float m_pageTemperatureWeightMax;
|
|
|
|
bool m_usePageTemperatureForRanking;
|
|
|
|
|
|
|
|
float m_flagScoreMultiplier[26];
|
|
|
|
int m_flagRankAdjustment[26];
|
|
|
|
|
2017-12-08 07:54:15 -05:00
|
|
|
BaseScoringParameters() { clear(); }
|
2017-12-11 08:44:58 -05:00
|
|
|
void clear();
|
|
|
|
void traceToLog(const char *prefix);
|
2018-05-24 09:39:59 -04:00
|
|
|
bool allLanguageWeightsAreTheSame() const;
|
2017-12-08 07:46:20 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|