This commit is contained in:
Al
2016-07-22 18:55:55 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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
romaji_probability: 0.2

View File

@@ -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]