summaryrefslogtreecommitdiff
path: root/decoder/hg.h
diff options
context:
space:
mode:
authoradam.d.lopez <adam.d.lopez@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-15 18:11:12 +0000
committeradam.d.lopez <adam.d.lopez@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-15 18:11:12 +0000
commit34804218a1fb60e1e5717e8ac00f8db3e4b99455 (patch)
treed94d36f446ad34fd9a237992e1b8584924af5a45 /decoder/hg.h
parentc43ff04b15243a542825104e7d565ac0e7c9ebbd (diff)
Fix bug in Density/BeamPruneInsideOutside
-only affected code calling these (legacy) functions, which have been refactored. -DensityPIO implemented BeamPIO and vice versa. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@266 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg.h')
-rw-r--r--decoder/hg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/hg.h b/decoder/hg.h
index c7fa0fc1..a21a7acf 100644
--- a/decoder/hg.h
+++ b/decoder/hg.h
@@ -194,12 +194,12 @@ class Hypergraph {
// legacy:
void DensityPruneInsideOutside(const double scale, const bool use_sum_prod_semiring, const double density,const EdgeMask* preserve_mask = NULL) {
- PruneInsideOutside(density,0,preserve_mask,use_sum_prod_semiring,scale);
+ PruneInsideOutside(0,density,preserve_mask,use_sum_prod_semiring,scale);
}
// legacy:
void BeamPruneInsideOutside(const double scale, const bool use_sum_prod_semiring, const double alpha,const EdgeMask* preserve_mask = NULL) {
- PruneInsideOutside(0,alpha,preserve_mask,use_sum_prod_semiring,scale);
+ PruneInsideOutside(alpha,0,preserve_mask,use_sum_prod_semiring,scale);
}
// report nodes, edges, paths