Class LinearInterpolatingScorer
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.WordScorer
-
- org.elasticsearch.search.suggest.phrase.LinearInterpolatingScorer
-
public final class LinearInterpolatingScorer extends WordScorer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.suggest.phrase.WordScorer
WordScorer.WordScorerFactory
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.suggest.phrase.WordScorer
field, reader, realWordLikelihood, separator, spare, terms, vocabluarySize
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, java.lang.String field, double realWordLikelihood, org.apache.lucene.util.BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda)
-
Method Summary
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)
-
Methods inherited from class org.elasticsearch.search.suggest.phrase.WordScorer
channelScore, frequency, join, score, scoreUnigram
-
-
-
-
Constructor Detail
-
LinearInterpolatingScorer
public LinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, java.lang.String field, double realWordLikelihood, org.apache.lucene.util.BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
scoreBigram
protected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws java.io.IOException
- Overrides:
scoreBigram
in classWordScorer
- Throws:
java.io.IOException
-
scoreTrigram
protected double scoreTrigram(DirectCandidateGenerator.Candidate w, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws java.io.IOException
- Overrides:
scoreTrigram
in classWordScorer
- Throws:
java.io.IOException
-
-