_seen_parses = set()
result = []
ESTIMATE_DECAY = 0.5
for i in 5,4,3,2,1:
end = word[-i:]
para_data = self._dictionary.prediction_suffixes.similar_items(end, self._ee)
After Change
(fixed_word, tag, normal_form, para_id, idx, cnt/total_counts[prefix_id] * ESTIMATE_DECAY)
for (cnt, fixed_word, tag, normal_form, para_id, idx, prefix_id) in result
]
result.sort(key=operator.itemgetter(5), reverse=True)
return result