danpovey / pocolm

Small language toolkit for creation, interpolation and pruning of ARPA language models
Other
90 stars 48 forks source link

Fix for sort memory buffer calculation in python3 #91

Closed pzelasko closed 6 years ago

pzelasko commented 6 years ago

This is a fix for an issue with memory buffer size calculation for the sort command - in Python 3, / operator does not truncate the result of int by int division and the code never entered the branch with correct calculation.