[parser] more logging in init

This commit is contained in:
Al
2017-03-06 15:11:39 -05:00
parent 4d2f77b3f3
commit 5f19e63cbe

View File

@@ -783,6 +783,8 @@ address_parser_t *address_parser_init(char *filename) {
free(phrase_keys); free(phrase_keys);
} }
log_info("Creating phrases trie\n");
parser->phrases = trie_new_from_hash(phrase_counts); parser->phrases = trie_new_from_hash(phrase_counts);
if (parser->phrases == NULL) { if (parser->phrases == NULL) {
log_error("Error converting phrase_counts to trie\n"); 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; goto exit_hashes_allocated;
} }
log_info("Building postal code contexts\n");
khash_t(str_set) *context_phrases; khash_t(str_set) *context_phrases;
uint32_t postal_code_id; uint32_t postal_code_id;