You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by algebra <fa...@gmail.com> on 2013/01/09 02:52:33 UTC

DirectSpellChecker.suggestSimilar

How can I decrease the similarity of words returned by
DirectSpellChecker.suggestSimilar?

for example:

 addDoc(w, "Andersom_Ferreira_Sousa");
 addDoc(w, "Anderson_Luis_Herinque");
 addDoc(w, "José_Anderson_da_Silva");
 addDoc(w, "Michel_Anderson_Griffin");
 w.close();
              
main.getSuggest("Anderson_Fereira_Souza",reader);

I want get "Andersom_Ferreira_Sousa" like suggestion. But in my current
configuration, it's not is possible.



--
View this message in context: http://lucene.472066.n3.nabble.com/DirectSpellChecker-suggestSimilar-tp4031740.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: DirectSpellChecker.suggestSimilar

Posted by Jack Krupansky <ja...@basetechnology.com>.
You have 3 errors in that name, so it won't work for a spellchecker that has 
a limit of 2 errors. So, try some of the other spellchecker algorithms.

-- Jack Krupansky

-----Original Message----- 
From: algebra
Sent: Tuesday, January 08, 2013 8:52 PM
To: dev@lucene.apache.org
Subject: DirectSpellChecker.suggestSimilar

How can I decrease the similarity of words returned by
DirectSpellChecker.suggestSimilar?

for example:

addDoc(w, "Andersom_Ferreira_Sousa");
addDoc(w, "Anderson_Luis_Herinque");
addDoc(w, "José_Anderson_da_Silva");
addDoc(w, "Michel_Anderson_Griffin");
w.close();

main.getSuggest("Anderson_Fereira_Souza",reader);

I want get "Andersom_Ferreira_Sousa" like suggestion. But in my current
configuration, it's not is possible.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/DirectSpellChecker-suggestSimilar-tp4031740.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org