diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:31:51 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:31:51 +0000 |
commit | 10e72981d5849717908d0636f820a7b107c84558 (patch) | |
tree | 1856efcd0fe52e3c480428df6127153879812d4d /decoder/cfg.cc | |
parent | 979188aaa06c13b05fcddf376f1253ebda54cdea (diff) |
boost::hash
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@541 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg.cc')
-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 a279c74a..c2d96b33 100755 --- a/decoder/cfg.cc +++ b/decoder/cfg.cc @@ -109,7 +109,7 @@ struct prob_pos { }//ns void CFG::UniqRules(NTHandle ni) { - typedef HASH_MAP<RHS,prob_pos> BestRHS; // faster to use trie? maybe. + typedef HASH_MAP<RHS,prob_pos,boost::hash<RHS> > BestRHS; // faster to use trie? maybe. BestRHS bestp; // once inserted, the position part (output index) never changes. but the prob may be improved (overwrite ruleid at that position). HASH_MAP_EMPTY(bestp,null_rhs); Ruleids &adj=nts[ni].ruleids; |