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 | be2b034ae9cb50ed148bd106db57214954f200d7 (patch) | |
tree | 44fe1b68d116d1c7c5ad937991a221208715e1a2 /decoder | |
parent | 0ff82d648446645df245decc1e9eafad304eb327 (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); |