From f1916c39b820b7d10d1ae7d7447675c4224d8197 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 24 Aug 2014 17:26:05 +0100 Subject: fixes --- fast/hypergraph.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fast/hypergraph.cc') diff --git a/fast/hypergraph.cc b/fast/hypergraph.cc index d9a51a5..2b33ff4 100644 --- a/fast/hypergraph.cc +++ b/fast/hypergraph.cc @@ -69,12 +69,12 @@ viterbi(Hypergraph& hg) void viterbi_path(Hypergraph& hg, Path& p) { - //list::iterator root = \ + list::iterator root = \ find_if(hg.nodes.begin(), hg.nodes.end(), \ [](Node* n) { return n->incoming.size() == 0; }); - list::iterator root = hg.nodes.begin(); + //list::iterator root = hg.nodes.begin(); - //Hg::topological_sort(hg.nodes, root); + Hg::topological_sort(hg.nodes, root); // ^^^ FIXME do I need to do this when reading from file? Semiring::Viterbi semiring; Hg::init(hg.nodes, root, semiring); -- cgit v1.2.3