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
commit089c60cae00edefe3e45baae04e3582f5819849c (patch)
tree709a5b53be34c8dd41fda0b12a809bfa3adee01b /decoder
parentba5267bddf74b6bc31b605810cbfe6597ab65cbf (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 {