dbpedia-spotlight/dbpedia-spotlight — pull request #314 by asoroa (2014-09-29 07:17:05+00:00)
Title: Tokenize text after spotting in Candidates.

SpotlightInterface (the implementation of the 'disambiguate' and
'annotate' endpoints) tokenizes the input text twice, before and after
performing soptting, respectively. The 'candidates' endpoint, however,
tokenizes the input text just once (before spotting). This causes
problems when calling 'candidates' while passing the 'SpotXmlParser'
spotter, which returns no output.

This commit fixes this bug by tokenizing the text after spotting in
Candidates.java, just like in the SpotlightInterface.java case.