Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-19 19:42:14 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-19 19:42:14 +0300
commit411d0ae0032af1672311b79289d4aeabb68b6dcb (patch)
tree25b3d87c162c5d34a2e05f5c1ad385edd3408fb3 /moses/HypothesisStackCubePruning.h
parentdd7bf06f957957fad6871c33382ebf98a75ea55d (diff)
use booost::unordered_map to store bitmap containers
Diffstat (limited to 'moses/HypothesisStackCubePruning.h')
-rw-r--r--moses/HypothesisStackCubePruning.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/HypothesisStackCubePruning.h b/moses/HypothesisStackCubePruning.h
index c8b0d6bef..8b870b298 100644
--- a/moses/HypothesisStackCubePruning.h
+++ b/moses/HypothesisStackCubePruning.h
@@ -23,11 +23,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#define moses_HypothesisStackCubePruning_h
#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 +37,7 @@ class BitmapContainer;
class TranslationOptionList;
class Manager;
-typedef std::map<WordsBitmap, BitmapContainer*> _BMType;
+typedef boost::unordered_map<WordsBitmap, BitmapContainer*, UnorderedComparer<WordsBitmap>, UnorderedComparer<WordsBitmap> > _BMType;
/** A stack for phrase-based decoding with cube-pruning. */
class HypothesisStackCubePruning : public HypothesisStack