public final class NoisyChannelSpellChecker extends Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
NoisyChannelSpellChecker.Result |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
DEFAULT_TOKEN_LIMIT |
static double |
REAL_WORD_LIKELYHOOD |
| コンストラクタと説明 |
|---|
NoisyChannelSpellChecker() |
NoisyChannelSpellChecker(double nonErrorLikelihood) |
NoisyChannelSpellChecker(double nonErrorLikelihood,
boolean requireUnigram,
int tokenLimit) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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,
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,
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 IOException
IOExceptionpublic 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, String analysisField, WordScorer scorer, float confidence, int gramSize) throws IOException
IOExceptionpublic org.apache.lucene.analysis.TokenStream tokenStream(org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.util.BytesRef query,
org.apache.lucene.util.CharsRefBuilder spare,
String field)
throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.