public final class LaplaceScorer extends WordScorer
WordScorer.WordScorerFactory
Modifier and Type | Field and Description |
---|---|
static WordScorer.WordScorerFactory |
FACTORY |
field, reader, realWordLikelyhood, separator, spare, terms, vocabluarySize
Constructor and Description |
---|
LaplaceScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double alpha) |
Modifier and Type | Method and Description |
---|---|
protected double |
scoreBigram(DirectCandidateGenerator.Candidate word,
DirectCandidateGenerator.Candidate w_1) |
protected double |
scoreTrigram(DirectCandidateGenerator.Candidate word,
DirectCandidateGenerator.Candidate w_1,
DirectCandidateGenerator.Candidate w_2) |
channelScore, frequency, score, scoreUnigram
public static final WordScorer.WordScorerFactory FACTORY
public LaplaceScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Terms terms, String field, double realWordLikelyhood, org.apache.lucene.util.BytesRef separator, double alpha) throws IOException
IOException
protected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws IOException
scoreBigram
in class WordScorer
IOException
protected double scoreTrigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws IOException
scoreTrigram
in class WordScorer
IOException
Copyright © 2009–2017. All rights reserved.