Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: components/dom_distiller/core/page_features.h

Issue 1047223003: Add integration of the new heuristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dd-adaboost-model
Patch Set: whitelist resources for ios Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/core/page_features.h
diff --git a/components/dom_distiller/core/page_features.h b/components/dom_distiller/core/page_features.h
index 919a90a1e4d18857140c8c8d964e54d6567fbb98..236796b542aecb860e3cb03311872183e50aec4f 100644
--- a/components/dom_distiller/core/page_features.h
+++ b/components/dom_distiller/core/page_features.h
@@ -12,6 +12,9 @@
namespace dom_distiller {
+// The length of the derived features vector.
+extern int kDerivedFeaturesCount;
+
// The distillable page detector is a model trained on a list of numeric
// features derived from core more complex features of a webpage (like the
// body's .textContent). This derives the numeric features for a set of core
@@ -31,7 +34,8 @@ std::vector<double> CalculateDerivedFeatures(bool isOGArticle,
// Calculates the derived features from the JSON value as returned by the
// javascript core feature extraction.
-std::vector<double> CalculateDerivedFeaturesFromJSON(const base::Value* json);
+std::vector<double> CalculateDerivedFeaturesFromJSON(
+ const base::Value* stringified_json);
} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/core/javascript/extract_features.js ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698