From 54caa7821b5434ed5c410fe72161e5aa0302366f Mon Sep 17 00:00:00 2001 From: cjhopman Date: Thu, 2 Apr 2015 13:26:49 -0700 Subject: Add calculation of derived features for distillable page model We've trained a simple model for detecting non-mobile distillable pages based on a set of features derived from a webpage. This change adds the main part of deriving those features (a bunch of values are calculated based on some core features of the web page). It does not add the extraction of those core features from a page. A test is added that uses json-formatted core features and then json-formatted output of the training pipelines derived feature calculation. It then ensures that the calculation here matches that in the training pipeline. BUG=471439 Review URL: https://codereview.chromium.org/1042053003 Cr-Commit-Position: refs/heads/master@{#323554} --- components/dom_distiller.gypi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/dom_distiller.gypi') diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi index 4741e3c..7ea0bcd 100644 --- a/components/dom_distiller.gypi +++ b/components/dom_distiller.gypi @@ -39,6 +39,7 @@ '../base/base.gyp:base_prefs', '../skia/skia.gyp:skia', '../sync/sync.gyp:sync', + '../third_party/re2/re2.gyp:re2', '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto', 'components.gyp:leveldb_proto', 'components_resources.gyp:components_resources', @@ -88,6 +89,8 @@ 'dom_distiller/core/feedback_reporter.cc', 'dom_distiller/core/feedback_reporter.h', 'dom_distiller/core/font_family_list.h', + 'dom_distiller/core/page_features.cc', + 'dom_distiller/core/page_features.h', 'dom_distiller/core/task_tracker.cc', 'dom_distiller/core/task_tracker.h', 'dom_distiller/core/theme_list.h', -- cgit v1.1