CommandRankingByProblemclass | parser.t[5848] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
On the first, coarse-grained pass, we measure only the presence or absence of our problem. That is, if one parse tree has zero occurrences of the problem and the other has a non-zero number of occurrences of the problem (as measured by our counting property), then we'll prefer the one with zero occurrences. If both have no occurrences, or both have a non-zero number of occurrences, we'll consider the two equivalent for the first pass, since we only care about the presence or absence of the problem.
On the second, fine-grained pass, we measure the actual number of occurrences of the problem, and choose the parse tree with the lower number.
class
CommandRankingByProblem : CommandRankingCriterion
CommandRankingByProblem
CommandRankingCriterion
object
rankByActorSpecified
rankByAllExcluded
rankByDisambigOrdinals
rankByEmptyBut
rankByIndefinite
rankByInsufficient
rankByListForSingle
rankByMiscWordList
rankByMissing
rankByNonMatch
rankByUnwantedPlural
rankByVocabNonMatch
prop_ | parser.t[5854] |
comparePass1 (a, b) OVERRIDDEN | parser.t[5857] |
comparePass2 (a, b) OVERRIDDEN | parser.t[5875] |