[fix] For countries like Denmark, removing country with a smaller probability
This commit is contained in:
@@ -707,6 +707,9 @@ def build_address_format_training_data_limited(language_rtree, infile, out_dir):
|
|||||||
have_country = True
|
have_country = True
|
||||||
_ = value.pop(k, None)
|
_ = value.pop(k, None)
|
||||||
|
|
||||||
|
if have_country and random.random() < 0.4:
|
||||||
|
have_country = False
|
||||||
|
|
||||||
if not value:
|
if not value:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user