OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 static size_t num_title_words_to_allow_; | 179 static size_t num_title_words_to_allow_; |
180 | 180 |
181 // True, if hqp experimental scoring is enabled. | 181 // True, if hqp experimental scoring is enabled. |
182 static bool hqp_experimental_scoring_enabled_; | 182 static bool hqp_experimental_scoring_enabled_; |
183 | 183 |
184 // |topicality_threshold_| is used to control the topicality scoring. | 184 // |topicality_threshold_| is used to control the topicality scoring. |
185 // If |topicality_threshold_| > 0, then URLs with topicality-score < threshold | 185 // If |topicality_threshold_| > 0, then URLs with topicality-score < threshold |
186 // are given topicality score of 0. By default it is initalized to -1. | 186 // are given topicality score of 0. By default it is initalized to -1. |
187 static float topicality_threshold_; | 187 static float topicality_threshold_; |
188 | 188 |
189 // |hqp_relevance_buckets_str_| is used to control the hqp score ranges. | |
190 // It is the string representation of |hqp_relevance_buckets_|. | |
191 static std::string hqp_relevance_buckets_str_; | |
Peter Kasting
2015/08/27 00:50:45
For this and the other variables here, if we only
Ashok vardhan
2015/08/27 19:09:27
Most of them are referenced in unit-tests also. I
| |
192 | |
189 // |hqp_relevance_buckets_| gives mapping from (topicality*frequency) | 193 // |hqp_relevance_buckets_| gives mapping from (topicality*frequency) |
190 // to the final relevance scoring. Please see GetFinalRelevancyScore() | 194 // to the final relevance scoring. Please see GetFinalRelevancyScore() |
191 // for more details and scoring method. | 195 // for more details and scoring method. |
192 static std::vector<ScoreMaxRelevance>* hqp_relevance_buckets_; | 196 static std::vector<ScoreMaxRelevance>* hqp_relevance_buckets_; |
193 }; | 197 }; |
194 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches; | 198 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches; |
195 | 199 |
196 #endif // COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ | 200 #endif // COMPONENTS_OMNIBOX_BROWSER_SCORED_HISTORY_MATCH_H_ |
OLD | NEW |