If scorer
has length zero, scoring is disabled. If it has length 1, the only scorer is used for scoring, and the only element of weight
is discarded. Otherwise, a {@link LinearAggregator} is used to combine results fromthe given scorers, using the given weights.
@param scorer a (possibly empty) array of {@linkplain Scorer scorers}.
@param weight a parallel array of weights (not to be confused with index weights).
signToScore
, calls prepareToScoreWords
, and then calculates and returns the n-gram precision score. In particular, returns the linear combination using the established weights of the various n-gram precision scores (from unigram up to the configured order), where the n-gram precision is the number of n-grams with a match in the target strings divided by the number of n-grams in the word sequence. With the exact matches flag set, only exact matches count. With short sequences (less than the order), the score is adjusted proportionally to the max score.
nextDoc()
The value returned may be meaningless depending on the context in which the DocIterator instance was retrieved.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|