diff options
author | cjhopman <cjhopman@chromium.org> | 2015-04-02 13:26:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-02 20:27:57 +0000 |
commit | 54caa7821b5434ed5c410fe72161e5aa0302366f (patch) | |
tree | f22762562a36d0d65c6ac685e74ff96f2c19eda2 /components/dom_distiller.gypi | |
parent | eab5ac980c7b7a5781dc18a1217911eb362698f0 (diff) | |
download | chromium_src-54caa7821b5434ed5c410fe72161e5aa0302366f.zip chromium_src-54caa7821b5434ed5c410fe72161e5aa0302366f.tar.gz chromium_src-54caa7821b5434ed5c410fe72161e5aa0302366f.tar.bz2 |
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}
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r-- | components/dom_distiller.gypi | 3 |
1 files changed, 3 insertions, 0 deletions
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', |