diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 18:52:06 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 18:52:06 +0300 |
commit | 7d98df2b0c39007c9167c505b73df5ef31ffd69c (patch) | |
tree | 3a6c2745a42cea621b3021e6585df21ace0ca1a2 /moses/HypothesisStackCubePruning.h | |
parent | b700f99afb6b3e0444c592b01b798057b99327bc (diff) |
reuse bitmap key for BitmapContainer
Diffstat (limited to 'moses/HypothesisStackCubePruning.h')
-rw-r--r-- | moses/HypothesisStackCubePruning.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/HypothesisStackCubePruning.h b/moses/HypothesisStackCubePruning.h index c8b0d6bef..06a1a7151 100644 --- a/moses/HypothesisStackCubePruning.h +++ b/moses/HypothesisStackCubePruning.h @@ -25,9 +25,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include <limits> #include <map> #include <set> +#include <boost/unordered_map.hpp> #include "Hypothesis.h" #include "BitmapContainer.h" #include "HypothesisStack.h" +#include "Util.h" namespace Moses { @@ -36,7 +38,7 @@ class BitmapContainer; class TranslationOptionList; class Manager; -typedef std::map<WordsBitmap, BitmapContainer*> _BMType; +typedef boost::unordered_map<const WordsBitmap*, BitmapContainer*, UnorderedComparer<WordsBitmap>, UnorderedComparer<WordsBitmap> > _BMType; /** A stack for phrase-based decoding with cube-pruning. */ class HypothesisStackCubePruning : public HypothesisStack |