OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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 import "translate_ranker_model.proto"; | 11 import "translate_ranker_model.proto"; |
12 | 12 |
13 package chrome_intelligence; | 13 package machine_intelligence; |
14 | 14 |
15 // Metadata for a ranker model instance. This data describes how the ranker | 15 // Metadata for a ranker model instance. This data describes how the ranker |
16 // model should be interpreted/used. | 16 // model should be interpreted/used. |
17 message RankerModelMetadata { | 17 message RankerModelMetadata { |
18 // An identifier denoting the type or purpose of this model. | 18 // An identifier denoting the type or purpose of this model. |
19 optional string name = 1; | 19 optional string name = 1; |
20 | 20 |
21 // An identifier denoting the specific instance of this model. For example: | 21 // An identifier denoting the specific instance of this model. For example: |
22 // "Experiment B" | 22 // "Experiment B" |
23 optional string label = 2; | 23 optional string label = 2; |
(...skipping 16 matching lines...) Expand all Loading... |
40 optional int64 cache_duration_sec = 5; | 40 optional int64 cache_duration_sec = 5; |
41 } | 41 } |
42 | 42 |
43 // Defines an envelope/wrapper for general models. | 43 // Defines an envelope/wrapper for general models. |
44 message RankerModelProto { | 44 message RankerModelProto { |
45 // Metadata. | 45 // Metadata. |
46 optional RankerModelMetadata metadata = 1; | 46 optional RankerModelMetadata metadata = 1; |
47 | 47 |
48 oneof model { TranslateRankerModel translate = 2; } | 48 oneof model { TranslateRankerModel translate = 2; } |
49 } | 49 } |
OLD | NEW |