public class StupidBackoffScorer extends WordScorer
WordScorer.WordScorerFactory| 修飾子とタイプ | フィールドと説明 |
|---|---|
static WordScorer.WordScorerFactory |
FACTORY |
field, reader, realWordLikelyhood, separator, spare, terms, vocabluarySize| コンストラクタと説明 |
|---|
StupidBackoffScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double discount) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 static final WordScorer.WordScorerFactory FACTORY
public StupidBackoffScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Terms terms,
String field,
double realWordLikelyhood,
org.apache.lucene.util.BytesRef separator,
double discount)
throws IOException
IOExceptionprotected double scoreBigram(DirectCandidateGenerator.Candidate word, DirectCandidateGenerator.Candidate w_1) throws IOException
scoreBigram クラス内 WordScorerIOExceptionprotected double scoreTrigram(DirectCandidateGenerator.Candidate w, DirectCandidateGenerator.Candidate w_1, DirectCandidateGenerator.Candidate w_2) throws IOException
scoreTrigram クラス内 WordScorerIOExceptionCopyright © 2009–2016. All rights reserved.