lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucene-...@jakarta.apache.org
Subject [Jakarta Lucene Wiki] Updated: SpellChecker
Date Fri, 22 Oct 2004 02:07:09 GMT
   Date: 2004-10-21T19:07:09
   Editor: NicolasMaisonneuve <nicoo_@hotmail.com>
   Wiki: Jakarta Lucene Wiki
   Page: SpellChecker
   URL: http://wiki.apache.org/jakarta-lucene/SpellChecker

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -19,7 +19,7 @@
  * Example: we can add all the keywords of a specific field of your index.
  {{{
 SpellChecker spell= new SpellChecker(dictionaryDirectory);
-spell.addWords(myIndex_Reader, myField);
+spell.indexDictionary(new LuceneDictionary(my_reader,my_field));
  }}}
 
 == get a list of suggest words ==
@@ -33,8 +33,8 @@
   The ''num_list'' is the maximum number of words returned. 
   In this example the list is just sorted with the levenshtein distance.
  {{{
-   String[] l=spellChecker.suggestSimilar("sevanty", 10);
-   //l[0] = "seventy" , l[1] = "seven" , l[2]="seventeen"
+   String[] l=spellChecker.suggestSimilar("sevanty", 2);
+   //l[0] = "seventy"
  }}}
 
  * Second example: the suggestSimilar(misspelled_word, num_list, myIndex_Redear,myField,
morePopular)
@@ -49,7 +49,18 @@
 == Download ==
 attachment:spellchecker1.1.zip
 
+== Changes == 
+1.1 
+- sort fixed (the sort was inversed!) 
+- set gram dynamicaly (depending of the length of the word) 
+- use the FuzzyQuery score: ((edit distance)/(length of word))
+- new Dictionary interface + LuceneDictionary  and PlaintextDictionary implementation
+- replace addWords method by indexDictionary(Dictionnary dic)
+- add  a new public method: boolean exist(word) 
+- add a build.xml
+
 == Credits ==
- *   David Spencer
- *   Nicolas Maisonneuve
+ *   Maisonneuve Nicolas
+ *   Spencer David
+
 

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


Mime
View raw message