summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller.gypi
diff options
context:
space:
mode:
authorcjhopman <cjhopman@chromium.org>2015-04-02 22:23:43 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-03 05:24:51 +0000
commitb64bcfdc2f0a9d51b98706da364f56d5a901c772 (patch)
tree841c982744109dcaa0f9793b8fb6850ee3d15389 /components/dom_distiller.gypi
parent603aab92420707a94db0646c21c2d8e8d992ab8f (diff)
downloadchromium_src-b64bcfdc2f0a9d51b98706da364f56d5a901c772.zip
chromium_src-b64bcfdc2f0a9d51b98706da364f56d5a901c772.tar.gz
chromium_src-b64bcfdc2f0a9d51b98706da364f56d5a901c772.tar.bz2
Add simple DistillablePageDetector
This is initialized with a proto containing the trained model. Then has a simple Classify() function that takes a set of features (these must be of the same length, calculated the same way, and in the same order as the features that the model was trained on). BUG=471439 Review URL: https://codereview.chromium.org/1041063002 Cr-Commit-Position: refs/heads/master@{#323623}
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r--components/dom_distiller.gypi14
1 files changed, 9 insertions, 5 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi
index 7ea0bcd..9f64e30 100644
--- a/components/dom_distiller.gypi
+++ b/components/dom_distiller.gypi
@@ -17,8 +17,8 @@
'../url/url.gyp:url_lib',
'components_resources.gyp:components_resources',
'components_strings.gyp:components_strings',
- 'distilled_page_proto',
'dom_distiller_core',
+ 'dom_distiller_protos',
],
'include_dirs': [
'..',
@@ -44,14 +44,14 @@
'components.gyp:leveldb_proto',
'components_resources.gyp:components_resources',
'components_strings.gyp:components_strings',
- 'distilled_page_proto',
+ 'dom_distiller_protos',
'pref_registry',
],
'include_dirs': [
'..',
],
'export_dependent_settings': [
- 'distilled_page_proto',
+ 'dom_distiller_protos',
'../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
],
'sources': [
@@ -63,6 +63,8 @@
'dom_distiller/core/article_distillation_update.h',
'dom_distiller/core/article_entry.cc',
'dom_distiller/core/article_entry.h',
+ 'dom_distiller/core/distillable_page_detector.cc',
+ 'dom_distiller/core/distillable_page_detector.h',
'dom_distiller/core/distilled_content_store.cc',
'dom_distiller/core/distilled_content_store.h',
'dom_distiller/core/distilled_page_prefs.cc',
@@ -136,9 +138,10 @@
},
{
# GN version: //components/dom_distiller/core/proto
- 'target_name': 'distilled_page_proto',
+ 'target_name': 'dom_distiller_protos',
'type': 'static_library',
'sources': [
+ 'dom_distiller/core/proto/adaboost.proto',
'dom_distiller/core/proto/distilled_article.proto',
'dom_distiller/core/proto/distilled_page.proto',
],
@@ -167,6 +170,7 @@
'components_resources.gyp:components_resources',
'components_strings.gyp:components_strings',
'dom_distiller_core',
+ 'dom_distiller_protos',
],
'include_dirs': [
'..',
@@ -189,7 +193,7 @@
'type': 'static_library',
'dependencies': [
'../ios/provider/ios_provider_web.gyp:ios_provider_web',
- 'distilled_page_proto',
+ 'dom_distiller_protos',
'dom_distiller_core',
],
'include_dirs': [