On Tue, Jan 8, 2013 at 11:53 AM, Dawid Weiss
wrote:
>> It'd be even better if it took context into account to get better
>> corrections ... but we just don't have that API yet (patches
>> welcome!!).
>
> Yeah... it's just asking for maximizing the probability of the
> correction over the entire se
> It'd be even better if it took context into account to get better
> corrections ... but we just don't have that API yet (patches
> welcome!!).
Yeah... it's just asking for maximizing the probability of the
correction over the entire sequence, huh? :)
Dawid
-
Unfortunately DirectSpellChecker operates only on one "term" at a time
(where term = whatever tokens were indexed into that field).
I agree it'd be wonderful to have an API that takes a whole query,
tokenizes it, runs suggest on each word, and puts it back together
into a simple "Did you mean?"
I
Thanks Michael,
I would like to get the suggestion of terms and not just words, for example:
addDoc(w,"Lucene in Action");
addDoc(w,"Lucene for Dummies");
addDoc(w,"Managing Gigabytes");
addDoc(w,"The Art of Computer Science");
main.printSuggests("lucina in",my_reader);
public void printSuggest
Hi,
I think you missed my last response?
You need Lucene 4.0.
Mike McCandless
http://blog.mikemccandless.com
On Mon, Jan 7, 2013 at 6:25 PM, algebra wrote:
> Hi Michael,
>
> What library and version I need install to use DirectSpellChecker class?
>
> =)
>
>
>
> --
> View this message in conte
Hi Michael,
What library and version I need install to use DirectSpellChecker class?
=)
--
View this message in context:
http://lucene.472066.n3.nabble.com/Suggestion-words-in-FuzzyQuery-tp4031354p4031375.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
I don't think there are ready code samples ... but the API is fairly
straightforward ... try reading the javadocs?
http://lucene.apache.org/core/4_0_0/suggest/org/apache/lucene/search/spell/DirectSpellChecker.html
Basically you create it and then call one of its suggestSimilar methods.
Note that
Thanks Mike McCandless,
but I would like know how works DirectSpellChecker,
I'd like to see a complete example using DirectSpellchecker.
Can somebody help me?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Suggestion-words-in-FuzzyQuery-tp4031354p4031363.html
Sent from
Use DirectSpellChecker?
That's basically FuzzyQuery without matching the documents ...
Mike McCandless
http://blog.mikemccandless.com
On Mon, Jan 7, 2013 at 5:12 PM, algebra wrote:
> Somebody know how get suggestion words using FuzzyQuery class?
>
>
>
> --
> View this message in context:
> ht