Welcome to mirror list, hosted at ThFree Co, Russian Federation.

hypergraph.proto « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e292eaccaf686262137dc5b8f09594ccd598b308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package hgmert;

import "rule.proto";

message Hypergraph {

  message Node {
    optional string category = 1;
    repeated string lm_state = 2;
  }

  message Edge {
    repeated int32 tail_nodes = 4;
    required int32 head_node = 5;
    // must be as many as num_features below
    repeated float feature_values = 6;
    required Rule rule = 7;
  }

  repeated Node nodes = 8;
  repeated Edge edges = 9;
  required bool is_sorted = 10;
  // the number of features in the feature vector
  required int32 num_features = 11;
  // string names of the features
  repeated string feature_names = 12;
  optional string src_string = 13;
  optional string sysid = 14;
}