From 089c60cae00edefe3e45baae04e3582f5819849c Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 26 Jul 2010 20:54:12 +0000 Subject: kbest compile git-svn-id: https://ws10smt.googlecode.com/svn/trunk@427 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/kbest.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoder') 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 { -- cgit v1.2.3