Hi, suggestWordsList = wordBreakSpellChecker.suggestWordBreaks( term, maxSugs, reader, sugMode, sortMethod) for suggestWords in suggestWordsList: print suggestWords[0]
Java doc here describes .. http://lucene.apache.org/core/4_3_0/suggest/org/apache/lucene/search/spell/WordBreakSpellChecker.html public SuggestWord <http://lucene.apache.org/core/4_3_0/suggest/org/apache/lucene/search/spell/SuggestWord.html>[][] suggestWordBreaks(Term <http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/index/Term.html?is-external=true> term, int maxSuggestions, IndexReader <http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/index/IndexReader.html?is-external=true> ir, SuggestMode <http://lucene.apache.org/core/4_3_0/suggest/org/apache/lucene/search/spell/SuggestMode.html> suggestMode, WordBreakSpellChecker.BreakSuggestionSortMethod <http://lucene.apache.org/core/4_3_0/suggest/org/apache/lucene/search/spell/WordBreakSpellChecker.BreakSuggestionSortMethod.html> sortMethod) throws IOException <http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true> .. but .. How do we convert from SuggestWord<http://lucene.apache.org/core/4_3_0/suggest/org/apache/lucene/search/spell/SuggestWord.html> [][] to something accessible from python? Thanks!