diff options
Diffstat (limited to 'decoder/kbest.h')
-rw-r--r-- | decoder/kbest.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/kbest.h b/decoder/kbest.h index 4dcd1362..3eb8707b 100644 --- a/decoder/kbest.h +++ b/decoder/kbest.h @@ -91,8 +91,7 @@ namespace KBest { } std::string derivation_tree(Derivation const& d,bool indent=true,int show_mask=Hypergraph::SPAN|Hypergraph::RULE,int maxdepth=0x7FFFFFFF,int depth=0) const { - EdgeHandle eh(d); - return d.edge->derivation_tree(*this,eh,indent,show_mask,maxdepth,depth); + return d.edge->derivation_tree(*this,EdgeHandle(&d),indent,show_mask,maxdepth,depth); } struct DerivationUniquenessHash { |