And formatting, again
This commit is contained in:
parent
3f4332be80
commit
6725be4259
@ -303,7 +303,7 @@ def compute_huffman_coding(qstrs, translation_name, translations, f, compression
|
||||
# picking to top 100 scores.
|
||||
|
||||
counter = sorted(counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True)[
|
||||
:100
|
||||
:100
|
||||
]
|
||||
scores = sorted(
|
||||
((s, -est_net_savings(s, occ)) for (s, occ) in counter if occ > 1),
|
||||
|
Loading…
Reference in New Issue
Block a user