bassosimone/tmfcore — pull request #13 by bassosimone (2014-11-25 17:21:51+00:00)
Title: classifyLongText(): do not assume that hits is nonempty

This pull request makes sure that classifyLongText() does not misbehave when less than seven topics are returned by a classification thread. As far as I understand it, the original code did not had this provision because it was assumed that seven topics were always returned. We now have the problem that we use short indexes for testing, therefore there are cases in which less than seven topics are returned.