[fix] NULL-phrase first ordering

This commit is contained in:
Al
2016-07-31 22:10:25 -04:00
parent afbb79b81d
commit d3e50fc894

View File

@@ -463,7 +463,7 @@ class AddressComponents(object):
values = []
probs = []
for num_type in (self.ALPHANUMERIC_PHRASE, self.NULL_PHRASE, self.STANDALONE_PHRASE):
for num_type in (self.NULL_PHRASE, self.ALPHANUMERIC_PHRASE, self.STANDALONE_PHRASE):
key = '{}_probability'.format(num_type)
prob = prob_dist.get(key)
if prob is not None: