Fix float/int conversion error in TermFrequencyWeightPolicy