diff options
author | Kenneth Heafield <kenlm@kheafield.com> | 2012-02-12 17:40:03 -0500 |
---|---|---|
committer | Kenneth Heafield <kenlm@kheafield.com> | 2012-02-12 17:40:03 -0500 |
commit | dbe064a15aa78b344d13db5bd831cc9e0a9bbac1 (patch) | |
tree | efe1a02e5fb855b0344e8f5c996d4002538fc0c2 | |
parent | a7681b121192c2c60591c51bf268ed943a83bc15 (diff) |
Might as well provide the edge count as well
-rw-r--r-- | decoder/hg_io.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/hg_io.cc b/decoder/hg_io.cc index 0283ec3c..9f0f50fa 100644 --- a/decoder/hg_io.cc +++ b/decoder/hg_io.cc @@ -632,7 +632,7 @@ void HypergraphIO::WriteAsCFG(const Hypergraph& hg) { * RHS with [vertex_index] for NTs ||| scores */ void HypergraphIO::WriteTarget(const Hypergraph& hg) { - cout << hg.nodes_.size() << '\n'; + cout << hg.nodes_.size() << ' ' << hg.edges_.size() << '\n'; for (unsigned int i = 0; i < hg.nodes_.size(); ++i) { const Hypergraph::EdgesVector &edges = hg.nodes_[i].in_edges_; cout << edges.size() << '\n'; |