[fix] adding street type gazetteer to name component as well for things like "24th St Cheese Co"

This commit is contained in:
Al
2018-02-15 18:13:27 -05:00
parent 9c12a11fd7
commit 78d621ac85
2 changed files with 1 additions and 3 deletions

View File

@@ -744,8 +744,6 @@ bool address_phrase_contains_unambiguous_expansion(phrase_t phrase) {
return false;
}
// Delete non-canonical phrases only
string_tree_t *add_string_alternatives_phrase_option(char *str, libpostal_normalize_options_t options, expansion_phrase_option_t phrase_option) {
char_array *key = NULL;

View File

@@ -34,7 +34,7 @@ gazetteer_t gazetteer_config[] = {
{DICTIONARY_QUALIFIER, LIBPOSTAL_ADDRESS_STREET},
{DICTIONARY_STAIRCASE, LIBPOSTAL_ADDRESS_STAIRCASE},
{DICTIONARY_STOPWORD, LIBPOSTAL_ADDRESS_ANY},
{DICTIONARY_STREET_TYPE, LIBPOSTAL_ADDRESS_STREET},
{DICTIONARY_STREET_TYPE, LIBPOSTAL_ADDRESS_STREET | LIBPOSTAL_ADDRESS_NAME},
{DICTIONARY_SURNAME, LIBPOSTAL_ADDRESS_STREET | LIBPOSTAL_ADDRESS_NAME},
{DICTIONARY_SYNONYM, LIBPOSTAL_ADDRESS_ANY},
{DICTIONARY_TOPONYM, LIBPOSTAL_ADDRESS_NAME | LIBPOSTAL_ADDRESS_STREET | LIBPOSTAL_ADDRESS_TOPONYM},