dbpedia-spotlight/dbpedia-spotlight — pull request #89 by sandroacoelho (2012-08-14 10:18:28+00:00)
Title: allCandidates var

Fixed bug(stacktrace below) when allCandidates var is empty.

org.dbpedia.spotlight.exceptions.SearchException: org.dbpedia.spotlight.exceptions.SearchException: Error searching for surface form CONTEXT:brilh CONTEXT:jog CONTEXT:particip CONTEXT:par CONTEXT:dos at org.dbpedia.spotlight.disambiguate.TwoStepDisambiguator.bestK(TwoStepDisambiguator.scala:137)...