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