public final class LinearInterpoatingScorer extends WordScorer
WordScorer.WordScorerFactoryfield, reader, realWordLikelyhood, separator, spare, terms, vocabluarySize| Constructor and Description |
|---|
LinearInterpoatingScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double trigramLambda,
double bigramLambda,
double unigramLambda) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
scoreBigram(DirectCandidateGenerator.Candidate word,
DirectCandidateGenerator.Candidate w_1) |
protected double |
scoreTrigram(DirectCandidateGenerator.Candidate w,
DirectCandidateGenerator.Candidate w_1,
DirectCandidateGenerator.Candidate w_2) |
channelScore, frequency, score, scoreUnigrampublic LinearInterpoatingScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double trigramLambda,
double bigramLambda,
double unigramLambda)
throws IOException
IOExceptionprotected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws IOException
scoreBigram in class WordScorerIOExceptionprotected double scoreTrigram(DirectCandidateGenerator.Candidate w, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws IOException
scoreTrigram in class WordScorerIOExceptionCopyright © 2009–2017. All rights reserved.