[parser] counting num classes in address parser init for models where it is needed a priori

This commit is contained in:
Al
2017-03-06 15:17:52 -05:00
parent 5f19e63cbe
commit 39fa8ff1a5
2 changed files with 39 additions and 9 deletions

View File

@@ -186,6 +186,7 @@ typedef struct parser_options {
// Can add other gazetteers as well
typedef struct address_parser {
parser_options_t options;
size_t num_classes;
averaged_perceptron_t *model;
trie_t *vocab;
trie_t *phrases;