diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-10-22 14:24:02 +0100 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-10-22 14:24:02 +0100 |
commit | 47d035b4403b0e8adf9037f0ae24ca13ccd40be7 (patch) | |
tree | 50d4d620d792336c2789e61b3964d9c12349f85a /decoder | |
parent | 1fb7bfbbe287e868522613871ed6ca74369ed2a1 (diff) |
Fix no path found error
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/incremental.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/incremental.cc b/decoder/incremental.cc index 768bbd65..a9369374 100644 --- a/decoder/incremental.cc +++ b/decoder/incremental.cc @@ -124,7 +124,7 @@ template <class Model> void Incremental<Model>::Search(unsigned int pop_limit, c gen.Search(context, vertex_gen); } const search::Final top = out_vertices[hg.nodes_.size() - 2].BestChild(); - if (top.Valid()) { + if (!top.Valid()) { std::cout << "NO PATH FOUND" << std::endl; } else { PrintFinal(hg, top); |