From 168b7f59da45ee121e4e6e476bea3dd1cda7aebb Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 4 Sep 2015 12:29:47 -0400 Subject: [PATCH] [fix] default indices in strip_component --- scripts/geodata/osm/osm_address_training_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index f30c7675..65115a61 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -256,6 +256,7 @@ class AddressFormatter(object): return text def strip_component(self, value, tagged=False): + i = j = 0 if not tagged: tokens = tokenize(value) for i, (c, t) in enumerate(tokens):