diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index 933af991..fe028cd8 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -709,6 +709,8 @@ def build_address_format_training_data_limited(language_rtree, infile, out_dir): if have_country and random.random() < 0.4: have_country = False + elif not have_country and random.random() < 0.2: + have_country = True if not value: continue