diff options
author | Patrick Simianer <p@simianer.de> | 2014-08-24 17:26:05 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-08-24 17:26:05 +0100 |
commit | f1916c39b820b7d10d1ae7d7447675c4224d8197 (patch) | |
tree | 7d3673d7784e7b3adbb6ca5b86e31058176bd376 /fast/hypergraph.cc | |
parent | cef65063cec641a93973b38a48e100fdd115db44 (diff) |
fixes
Diffstat (limited to 'fast/hypergraph.cc')
-rw-r--r-- | fast/hypergraph.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<Node*>::iterator root = \ + list<Node*>::iterator root = \ find_if(hg.nodes.begin(), hg.nodes.end(), \ [](Node* n) { return n->incoming.size() == 0; }); - list<Node*>::iterator root = hg.nodes.begin(); + //list<Node*>::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<score_t> semiring; Hg::init(hg.nodes, root, semiring); |