summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 20:54:12 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 20:54:12 +0000
commit33e82e891216a0d99a995af119080811d6b5c847 (patch)
tree959143eeb3c24eee2524213149f31f6a0e33c45d /decoder
parentef0266e7e51f3606e596e9794fa85c6e1b0aad00 (diff)
kbest compile
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@427 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r--decoder/kbest.h3
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 {