From e4b8349d98086f394f5c72eb9201c7ee49bcac57 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 25 Nov 2015 00:32:01 -0500 Subject: [PATCH] [fix] sparsity of country tags should be enough for language address training data --- scripts/geodata/osm/osm_address_training_data.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/geodata/osm/osm_address_training_data.py b/scripts/geodata/osm/osm_address_training_data.py index 68138070..bee89c27 100644 --- a/scripts/geodata/osm/osm_address_training_data.py +++ b/scripts/geodata/osm/osm_address_training_data.py @@ -707,9 +707,6 @@ def build_address_format_training_data_limited(language_rtree, infile, out_dir): have_country = True _ = value.pop(k, None) - if have_country and random.random() < 0.8: - have_country = False - if not value: continue