diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 03:06:15 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-11 03:06:15 +0000 |
commit | 96f15deb390289ff826b6cc168be7a2b75652996 (patch) | |
tree | 9d36b19cbf713eeca82bea1f1d2d8131fd37c41a /decoder | |
parent | dd018163ca8236d587a4899436a3bdea29b95564 (diff) |
use boost hash
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@516 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rwxr-xr-x | decoder/cfg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc index 4149a1ce..147fa1a0 100755 --- a/decoder/cfg.cc +++ b/decoder/cfg.cc @@ -26,7 +26,7 @@ void CFG::Binarize(CFGBinarize const& b) { } // l2r only so far: cerr << "Binarizing "<<b<<endl; - HASH_MAP<BinRhs,NTHandle> bin2lhs; // we're going to hash cons rather than build an explicit trie from right to left. + HASH_MAP<BinRhs,NTHandle,boost::hash<BinRhs> > bin2lhs; // we're going to hash cons rather than build an explicit trie from right to left. HASH_MAP_EMPTY(bin2lhs,nullrhs); int rhsmin=b.bin_unary?0:1; // iterate using indices and not iterators because we'll be adding to both nodes and edge list. we could instead pessimistically reserve space for both, but this is simpler. also: store original end of nts since we won't need to reprocess newly added ones. |