primeqa.mrc.processors.postprocessors.scorers.compute_weighted_sum_short_answer_type_score_diff_between_span_and_cls#

primeqa.mrc.processors.postprocessors.scorers.compute_weighted_sum_short_answer_type_score_diff_between_span_and_cls(span_score: float, null_span_score: float, target_type_logits: List, target_type_weight: float, *args, **kwargs)#

Compute score as sum of products target_type_weight times target type logit (for span answer) and 1 - target_type_weight times compute_score_diff_between_span_and_cls.