[fix] Cutting down training repeatedly on country names

This commit is contained in:
Al
2015-11-24 23:22:57 -05:00
parent 88529d28e2
commit 824c779107

View File

@@ -707,6 +707,9 @@ 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