public final class NoisyChannelSpellChecker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NoisyChannelSpellChecker.Result |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TOKEN_LIMIT |
static double |
REAL_WORD_LIKELYHOOD |
Constructor and Description |
---|
NoisyChannelSpellChecker() |
NoisyChannelSpellChecker(double nonErrorLikelihood) |
NoisyChannelSpellChecker(double nonErrorLikelihood,
boolean requireUnigram,
int tokenLimit) |
Modifier and Type | Method and Description |
---|---|
NoisyChannelSpellChecker.Result |
getCorrections(org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.util.BytesRef query,
CandidateGenerator generator,
float maxErrors,
int numCorrections,
org.apache.lucene.index.IndexReader reader,
java.lang.String analysisField,
WordScorer scorer,
float confidence,
int gramSize) |
NoisyChannelSpellChecker.Result |
getCorrections(org.apache.lucene.analysis.TokenStream stream,
CandidateGenerator generator,
float maxErrors,
int numCorrections,
WordScorer wordScorer,
float confidence,
int gramSize) |
org.apache.lucene.analysis.TokenStream |
tokenStream(org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.util.BytesRef query,
org.apache.lucene.util.CharsRefBuilder spare,
java.lang.String field) |
public static final double REAL_WORD_LIKELYHOOD
public static final int DEFAULT_TOKEN_LIMIT
public NoisyChannelSpellChecker()
public NoisyChannelSpellChecker(double nonErrorLikelihood)
public NoisyChannelSpellChecker(double nonErrorLikelihood, boolean requireUnigram, int tokenLimit)
public NoisyChannelSpellChecker.Result getCorrections(org.apache.lucene.analysis.TokenStream stream, CandidateGenerator generator, float maxErrors, int numCorrections, WordScorer wordScorer, float confidence, int gramSize) throws java.io.IOException
java.io.IOException
public NoisyChannelSpellChecker.Result getCorrections(org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.util.BytesRef query, CandidateGenerator generator, float maxErrors, int numCorrections, org.apache.lucene.index.IndexReader reader, java.lang.String analysisField, WordScorer scorer, float confidence, int gramSize) throws java.io.IOException
java.io.IOException
public org.apache.lucene.analysis.TokenStream tokenStream(org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.util.BytesRef query, org.apache.lucene.util.CharsRefBuilder spare, java.lang.String field) throws java.io.IOException
java.io.IOException