Имя | Описание |
---|---|
NGramDistance | |
SpellChecker | Spell Checker class (Main class) Example Usage: SpellChecker spellchecker = new SpellChecker(spellIndexDirectory); // To index a field of a user index: spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field)); // To index a file containing words: spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt"))); String[] suggestions = spellchecker.suggestSimilar("misspelt", 5); |
SuggestWordQueue | |
TRStringDistance | Edit distance class |