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

Side by Side Diff: components/machine_intelligence/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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Experimental Translation Assist Model to allow/suppress translation prompts. 5 // Experimental Translation Assist Model to allow/suppress translation prompts.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 package chrome_intelligence; 11 package machine_intelligence;
12 12
13 // Defines a Chrome Ranker Translate Model. 13 // Defines a Chrome Ranker Translate Model.
14 // Next tag: 13 14 // Next tag: 13
15 message TranslateRankerModel { 15 message TranslateRankerModel {
16 // A number that identifies the version of this model. 16 // A number that identifies the version of this model.
17 optional uint32 version = 1; 17 optional uint32 version = 1;
18 18
19 // Defines the weights and bias of a Logistic Regression Model. 19 // Defines the weights and bias of a Logistic Regression Model.
20 message LogisticRegressionModel { 20 message LogisticRegressionModel {
21 // Decision threshold. If not defined, use 0.5. 21 // Decision threshold. If not defined, use 0.5.
(...skipping 15 matching lines...) Expand all
37 map<string, float> source_language_weight = 5; 37 map<string, float> source_language_weight = 5;
38 map<string, float> target_language_weight = 6; 38 map<string, float> target_language_weight = 6;
39 map<string, float> country_weight = 7; 39 map<string, float> country_weight = 7;
40 map<string, float> locale_weight = 8; 40 map<string, float> locale_weight = 8;
41 } 41 }
42 42
43 oneof model_revision { 43 oneof model_revision {
44 LogisticRegressionModel logistic_regression_model = 2; 44 LogisticRegressionModel logistic_regression_model = 2;
45 } 45 }
46 } 46 }
OLDNEW
« no previous file with comments | « components/machine_intelligence/proto/ranker_model.proto ('k') | components/machine_intelligence/ranker_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698