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

Unified Diff: components/translate/core/browser/proto/translate_ranker_model.proto

Issue 2925733002: Move ranker_model_loader to a new component. (Closed)
Patch Set: Adressing sdefresne's comments. Created 3 years, 6 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/translate/core/browser/proto/translate_ranker_model.proto
diff --git a/components/translate/core/browser/proto/translate_ranker_model.proto b/components/translate/core/browser/proto/translate_ranker_model.proto
deleted file mode 100644
index e79d6e8bccaccc2f738ff1f63135047960ade86a..0000000000000000000000000000000000000000
--- a/components/translate/core/browser/proto/translate_ranker_model.proto
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// Experimental Translation Assist Model to allow/suppress translation prompts.
-
-syntax = "proto2";
-
-option optimize_for = LITE_RUNTIME;
-
-package chrome_intelligence;
-
-// Defines a Chrome Ranker Translate Model.
-// Next tag: 13
-message TranslateRankerModel {
- // A number that identifies the version of this model.
- optional uint32 version = 1;
-
- // Defines the weights and bias of a Logistic Regression Model.
- message LogisticRegressionModel {
- // Decision threshold. If not defined, use 0.5.
- optional float threshold = 12;
-
- optional float bias = 1;
-
- optional float accept_ratio_weight = 2;
- optional float decline_ratio_weight = 3;
- optional float ignore_ratio_weight = 4;
-
- optional float accept_count_weight = 9;
- optional float decline_count_weight = 10;
- optional float ignore_count_weight = 11;
-
- // One-hot features are encoded in the form of a map. These maps
- // each contain an element 'UNKNOWN' to use in case the key is not
- // found in the map.
- map<string, float> source_language_weight = 5;
- map<string, float> target_language_weight = 6;
- map<string, float> country_weight = 7;
- map<string, float> locale_weight = 8;
- }
-
- oneof model_revision {
- LogisticRegressionModel logistic_regression_model = 2;
- }
-}
« no previous file with comments | « components/translate/core/browser/proto/ranker_model.proto ('k') | components/translate/core/browser/ranker_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698