summaryrefslogtreecommitdiff
path: root/decoder/cfg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/cfg.cc')
-rwxr-xr-xdecoder/cfg.cc2
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;