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

Side by Side Diff: components/machine_intelligence/proto/ranker_model.proto

Issue 2925733002: Move ranker_model_loader to a new component. (Closed)
Patch Set: Adressing sdefresne's comments. Created 3 years, 5 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/machine_intelligence/proto/BUILD.gn ('k') | components/machine_intelligence/proto/translate_ranker_model.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698