25 jan 2007 kl. 20.43 skrev Ryan O'Hara:
Is there anyway to sort the suggestions prior, so that grabbing
only one suggestion would give you the best suggestion, in this
case "genetics"?
Without having looked at the code for a long time, I think the
problem is what the lucene scoring cons
It seems that the suggestions returned by SpellChecker::suggestSimilar
(queryText, num_sug, reader, field, bool) are randomly chosen, then
sorted. By altering num_sug (10, 5, 3,2,1), I received the following
suggestions for "gnetics":
suggestion0: genetics
suggestion1: ginetics
suggestion2: