summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <kenlm@kheafield.com>2012-02-12 17:40:03 -0500
committerKenneth Heafield <kenlm@kheafield.com>2012-02-12 17:40:03 -0500
commite8583574e25c8ef09c9cd21cbc7421d9d12cf75f (patch)
tree6cbd9d3589558063a3d64be8eb1cfe4943c1ea5a
parentfeab7be095f6454f9ce3021190939ca64bf41e62 (diff)
Might as well provide the edge count as well
-rw-r--r--decoder/hg_io.cc2
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';