OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 // | |
5 // Experimental Translation Assist Model to allow/suppress translation prompts. | |
6 | |
7 syntax = "proto2"; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 package chrome_intelligence; | |
12 | |
13 // Defines a Chrome Ranker Translate Model. | |
14 // Next tag: 13 | |
15 message TranslateRankerModel { | |
16 // A number that identifies the version of this model. | |
17 optional uint32 version = 1; | |
18 | |
19 // Defines the weights and bias of a Logistic Regression Model. | |
20 message LogisticRegressionModel { | |
21 // Decision threshold. If not defined, use 0.5. | |
22 optional float threshold = 12; | |
23 | |
24 optional float bias = 1; | |
25 | |
26 optional float accept_ratio_weight = 2; | |
27 optional float decline_ratio_weight = 3; | |
28 optional float ignore_ratio_weight = 4; | |
29 | |
30 optional float accept_count_weight = 9; | |
31 optional float decline_count_weight = 10; | |
32 optional float ignore_count_weight = 11; | |
33 | |
34 // One-hot features are encoded in the form of a map. These maps | |
35 // each contain an element 'UNKNOWN' to use in case the key is not | |
36 // found in the map. | |
37 map<string, float> source_language_weight = 5; | |
38 map<string, float> target_language_weight = 6; | |
39 map<string, float> country_weight = 7; | |
40 map<string, float> locale_weight = 8; | |
41 } | |
42 | |
43 oneof model_revision { | |
44 LogisticRegressionModel logistic_regression_model = 2; | |
45 } | |
46 } | |
OLD | NEW |