You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DecodingScorer identifiers omit text matcher configuration #3074
DecodingScorer._build_identifier() records only the text matcher's class name. The built-in matchers' case_sensitive, ignore_whitespace, threshold, and n settings are absent from both the component hash and the evaluation hash.
Two scorers can therefore return opposite verdicts for the same input while sharing an evaluation identity. ScorerEvaluator._should_skip_evaluation() looks up existing metrics by this hash, so an evaluation can reuse metrics from a different matcher configuration when the remaining cache conditions match.
This is the same defect #2977 described for SubStringScorer, in the sibling class that #2979 did not touch. SubStringScorer._build_identifier() now passes the matcher's get_identifier_params() through; DecodingScorer._build_identifier() still does not, although both hold a TextMatching instance at the same point of the same method.
Activity