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.
|
|