diff --git a/resources/parser/data_sets/osm.yaml b/resources/parser/data_sets/osm.yaml index d2dd1e26..9f01241d 100644 --- a/resources/parser/data_sets/osm.yaml +++ b/resources/parser/data_sets/osm.yaml @@ -29,4 +29,4 @@ countries: # Always do this as there are plenty of examples of block numbers without house number combine_block_house_number_probability: 1.0 block_phrase_probability: 0.4 - romaji_probability: 0.2 \ No newline at end of file + romaji_probability: 0.2 diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 68f190da..5f67cf1e 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -154,6 +154,7 @@ class OSMAddressFormatter(object): language = random.choice(namespaced) lang_suffix = ':{}'.format(language) for k in tags: + if k.endswith(lang_suffix): tags[k.rstrip(lang_suffix)] = tags[k]