From 5f19e63cbe4982c82ba963372e5636cb4bddc527 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 6 Mar 2017 15:11:39 -0500 Subject: [PATCH] [parser] more logging in init --- src/address_parser_train.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/address_parser_train.c b/src/address_parser_train.c index 38da06b9..c567b878 100644 --- a/src/address_parser_train.c +++ b/src/address_parser_train.c @@ -783,6 +783,8 @@ address_parser_t *address_parser_init(char *filename) { free(phrase_keys); } + log_info("Creating phrases trie\n"); + parser->phrases = trie_new_from_hash(phrase_counts); if (parser->phrases == NULL) { log_error("Error converting phrase_counts to trie\n"); @@ -838,6 +840,8 @@ address_parser_t *address_parser_init(char *filename) { goto exit_hashes_allocated; } + log_info("Building postal code contexts\n"); + khash_t(str_set) *context_phrases; uint32_t postal_code_id;