Skip to content

Commit 43cebaa

Browse files
authored
Merge pull request #893 from lukhnos/more-formula-fix
Fix two more incorrect string length calculations
2 parents 6cf761a + 445fb5b commit 43cebaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Data/curation/builders/frequency_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def main():
6161
print("({})".format(e))
6262
for k in phrases:
6363
if phrases[k] < 1:
64-
handle.write('%s %.8f\n' % (k, math.log(fscale ** (len(k) / 3 - 1) * 0.5 / norm, 10)))
64+
handle.write('%s %.8f\n' % (k, math.log(fscale ** (len(k) - 1) * 0.5 / norm, 10)))
6565
else:
66-
handle.write('%s %.8f\n' % (k, math.log(fscale ** (len(k) / 3 - 1) * phrases[k] / norm, 10)))
66+
handle.write('%s %.8f\n' % (k, math.log(fscale ** (len(k) - 1) * phrases[k] / norm, 10)))
6767
handle.close()
6868

6969

0 commit comments

Comments
 (0)