[fix] using toponym_gazetteer in OSM boundary abbreviations

This commit is contained in:
Al
2016-09-10 00:02:59 -04:00
parent 8e86b5caf7
commit 604e898d65

View File

@@ -773,7 +773,7 @@ class AddressComponents(object):
if component == AddressFormatter.STATE and random.random() < abbreviate_state_prob:
val = state_abbreviations.get_abbreviation(country, language, val, default=val)
elif random.random() < abbreviate_toponym_prob:
val = abbreviate(qualifiers_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
val = abbreviate(toponym_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
address_components[component] = val