OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |