Class LinearInterpolatingScorer
java.lang.Object
org.elasticsearch.search.suggest.phrase.WordScorer
org.elasticsearch.search.suggest.phrase.LinearInterpolatingScorer
-
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, numTerms, reader, realWordLikelihood, separator, spare, terms, vocabluarySize
-
Constructor Summary
ConstructorDescriptionLinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, String field, double realWordLikelihood, org.apache.lucene.util.BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda)
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
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 Details
-
LinearInterpolatingScorer
public LinearInterpolatingScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, String field, double realWordLikelihood, org.apache.lucene.util.BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda) throws IOException- Throws:
IOException
-
-
Method Details
-
scoreBigram
protected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws IOException- Overrides:
scoreBigram
in classWordScorer
- Throws:
IOException
-
scoreTrigram
protected double scoreTrigram(DirectCandidateGenerator.Candidate w, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws IOException- Overrides:
scoreTrigram
in classWordScorer
- Throws:
IOException
-