[fix] making a separate gazetteer for toponym abbreviations
This commit is contained in:
@@ -774,7 +774,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(toponym_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
|
||||
val = abbreviate(toponym_abbreviations_gazetteer, val, language, abbreviate_prob=abbreviate_toponym_prob)
|
||||
|
||||
address_components[component] = val
|
||||
|
||||
|
||||
Reference in New Issue
Block a user