OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 syntax = "proto2"; | |
6 option optimize_for = LITE_RUNTIME; | |
7 | |
8 package image_collections; | |
9 | |
10 message ClusterRequest { | |
11 // Optional list of docs we want to cluster--a subset of the user's available | |
12 // docs. | |
13 repeated string docs = 1; | |
14 | |
15 // When docs is empty, used to determine which clips are clustered. If set to | |
16 // true, cluster all the user's clips. Otherwise (default) cluster all of the | |
17 // user's uncategorized clips. | |
18 optional bool cluster_all = 3 [default = false]; | |
19 | |
20 optional HypnoOptions options = 2; | |
21 } | |
22 | |
23 message ClusterResponse { | |
24 message Cluster { | |
25 repeated string docs = 1; | |
26 // May be empty or unset if no reasonable title could be found. | |
27 optional string title = 2; | |
28 } | |
29 | |
30 // Each of ClusterRequest.docs will exist in exactly one cluster. Some | |
31 // clusters may be singletons, so | |
32 // ClusterResponse.clusters_size() <= ClusterRequest.docs_size(). | |
33 repeated Cluster clusters = 1; | |
34 } | |
35 | |
36 // Options proto used for tuning and RPC requests. | |
37 message HypnoOptions { | |
38 // TODO(kej): Reevaluate parameters after any major algorithm or data changes. | |
Yaron
2014/09/05 05:18:01
remove this and revise other comments to not refer
noyau (Ping after 24h)
2014/09/10 08:53:57
Done.
| |
39 // Last eval 12/3/13 (see http://goo.gl/sqSpgT). | |
40 optional float min_merge_similarity = 1 [default = 0.14]; | |
41 optional float min_linkage_similarity = 2 [default = 0.12]; | |
42 | |
43 // GAIA ID to use for requests received via RPC. | |
44 optional int64 gaia_id = 3 [default = 0]; | |
45 | |
46 // Options for limiting what is returned from cluster. | |
47 optional int32 min_cluster_size = 4 [default = 3]; | |
48 optional bool include_unnamed_clusters = 5 [default = false]; | |
49 | |
50 // Options for webref usage. Currently only honored in Superroot. | |
51 | |
52 // Webref labels with topicality < this flag will not be included in label | |
53 // search results. | |
54 optional int32 min_webref_topicality = 6 [default = 30]; | |
55 | |
56 // A multiplicative factor by which webref's [0,1] topicality is scaled into | |
57 // nav-style clicks. | |
58 optional float webref_topicality_scaling = 7 [default = 1.0]; | |
59 } | |
OLD | NEW |