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

Side by Side Diff: components/translate/core/browser/proto/translate_ranker_model.proto

Issue 2803353002: Change dest_language to target_language in the logistic regression model for consistency with googl… (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | components/translate/core/browser/translate_ranker_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 14 matching lines...) Expand all
25 optional float ignore_ratio_weight = 4; 25 optional float ignore_ratio_weight = 4;
26 26
27 optional float accept_count_weight = 9; 27 optional float accept_count_weight = 9;
28 optional float decline_count_weight = 10; 28 optional float decline_count_weight = 10;
29 optional float ignore_count_weight = 11; 29 optional float ignore_count_weight = 11;
30 30
31 // One-hot features are encoded in the form of a map. These maps 31 // One-hot features are encoded in the form of a map. These maps
32 // each contain an element 'UNKNOWN' to use in case the key is not 32 // each contain an element 'UNKNOWN' to use in case the key is not
33 // found in the map. 33 // found in the map.
34 map<string, float> source_language_weight = 5; 34 map<string, float> source_language_weight = 5;
35 map<string, float> dest_language_weight = 6; 35 map<string, float> target_language_weight = 6;
36 map<string, float> country_weight = 7; 36 map<string, float> country_weight = 7;
37 map<string, float> locale_weight = 8; 37 map<string, float> locale_weight = 8;
38 } 38 }
39 39
40 oneof model_revision { 40 oneof model_revision {
41 LogisticRegressionModel logistic_regression_model = 2; 41 LogisticRegressionModel logistic_regression_model = 2;
42 } 42 }
43 } 43 }
OLDNEW
« no previous file with comments | « no previous file | components/translate/core/browser/translate_ranker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698