diff options
author | adam.d.lopez <adam.d.lopez@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-15 18:11:12 +0000 |
---|---|---|
committer | adam.d.lopez <adam.d.lopez@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-15 18:11:12 +0000 |
commit | 272108e70b3462fdf5011f1d4dc7ec635259e344 (patch) | |
tree | f5c64f9b40e68edff9db8965c9c3dd12a111a6b8 | |
parent | 6f81f990dae050f7258cb2f560dad4fb46cd6c26 (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
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | decoder/hg.h | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -93,4 +93,6 @@ gi/posterior-regularisation/prjava/build/ gi/posterior-regularisation/prjava/lib/prjava-20100713.jar gi/posterior-regularisation/prjava/prjava.jar gi/pyp-topics/src/pyp-contexts-train +extools/sg_lexer.cc +gi/posterior-regularisation/prjava/lib/prjava-20100715.jar 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 |