public final class LinearInterpolatingScorer extends WordScorer
WordScorer.WordScorerFactory
field, reader, realWordLikelyhood, separator, spare, terms, vocabluarySize
Constructor | Description |
---|---|
LinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
java.lang.String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double trigramLambda,
double bigramLambda,
double unigramLambda) |
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelScore, frequency, join, score, scoreUnigram
public LinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, java.lang.String field, double realWordLikelyhood, org.apache.lucene.util.BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda) throws java.io.IOException
java.io.IOException
protected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws java.io.IOException
scoreBigram
in class WordScorer
java.io.IOException
protected double scoreTrigram(DirectCandidateGenerator.Candidate w, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws java.io.IOException
scoreTrigram
in class WordScorer
java.io.IOException