Date: 2004-10-11T10:29:59 Editor: NicolasMaisonneuve <[EMAIL PROTECTED]> Wiki: Jakarta Lucene Wiki Page: SpellChecker URL: http://wiki.apache.org/jakarta-lucene/SpellChecker
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,8 +1,8 @@ -===SpellChecker=== +=== SpellChecker === a Spell Checker allow to suggest a list of words close to a misspelled word. This implementation is based on the David Spencer code using the n-gram technic and the levensthein distance. -==Structure of a dictionary index == +== Structure of a dictionary index == A Index (the dictionary) with all the possible words (a lucene index) must be created. The structure of this index is (for a 3-4 gram): word: gram3: @@ -13,6 +13,7 @@ 4end: transposition: +== add words to the dictionary == it's independant of the user index. So we can add words becoming to several fields of several index for example or, why not, to a file with a list of words. @@ -24,6 +25,7 @@ spell.addWords(myIndex_Reader, myField) +== get a list of suggest word == The suggestSimilar method return a list of suggests word sorted by the Levenshtein distance and optionaly to the popularity of the word for a specific field in a user index. More of that, this list can be restricted only to words @@ -31,4 +33,5 @@ See the test case code for example +== Download == download file to [http://issues.apache.org/bugzilla/show_bug.cgi?id=31617] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]