From 33af61095bdff7b81edfd4c0d40406178acd73c1 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 3 Sep 2015 17:49:52 -0400 Subject: [PATCH] [fix] var --- scripts/geodata/osm/osm_address_training_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index f80552b4..143dd9bf 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -244,10 +244,10 @@ class AddressFormatter(object): text = re.sub(regex, replacement, text) return text - def tokenize_component(self, v): + def tokenize_component(self, value): tokens = tokenize(value) if sum((1 for c, t in tokens if c.value < token_types.PERIOD.value)) > 0: - return [t for c, t in tokenize(v)] + return [t for c, t in tokens] return [] def format_address(self, country, components, minimal_only=True, tag_components=True):