[fix] sparsity of country tags should be enough for language address training data

This commit is contained in:
Al
2015-11-25 00:32:01 -05:00
parent 824c779107
commit e4b8349d98

View File

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