[fix] need to store stats for component phrases that have more than one component, otherwise only the first gets stored and everything is an "unambiguous" phrase, which is not true

This commit is contained in:
Al
2017-03-15 14:11:59 -04:00
parent 0b27eb3f74
commit 266065f22f

View File

@@ -638,6 +638,7 @@ address_parser_t *address_parser_init(char *filename) {
stats = kh_value(phrase_stats, k);
place_class_counts = stats.class_counts;
stats.components |= component;
kh_value(phrase_stats, k) = stats;
}
if (!int_uint32_hash_incr(place_class_counts, (khint_t)class_id)) {