[fix] country formatting in language address training data

This commit is contained in:
Al
2015-11-24 23:20:31 -05:00
parent cd74fcda3c
commit 88529d28e2

View File

@@ -703,7 +703,7 @@ def build_address_format_training_data_limited(language_rtree, infile, out_dir):
have_country = False
for k in remove_keys:
if k in country_keys_set:
if k in country_keys_set and k in value:
have_country = True
_ = value.pop(k, None)