From 266065f22f88b25e06794c51f03035e0b1bcef43 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 15 Mar 2017 14:11:59 -0400 Subject: [PATCH] [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 --- src/address_parser_train.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/address_parser_train.c b/src/address_parser_train.c index 7e430388..abae4f0e 100644 --- a/src/address_parser_train.c +++ b/src/address_parser_train.c @@ -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)) {