From c92a6de47770594ab4ff1d055af48b9394d05f51 Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 5 Dec 2015 15:49:50 -0500 Subject: [PATCH] [fix] name --- scripts/geodata/osm/osm_address_training_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index f0789f61..b8cef9d9 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -727,7 +727,7 @@ def build_address_format_training_data(admin_rtree, language_rtree, neighborhood ''' for component in REPLACE_COMPONENTS: name = address_components[component] - replacement = replace_name_prefixes(replace_name_suffixes()) + replacement = replace_name_prefixes(replace_name_suffixes(name)) if replacement != name and random.random() < 0.6: address_components[component] = replacement