scorers#

Functions

compute_score_diff_between_span_and_cls

Compute score as difference between span score (e.g.

compute_short_answer_type_weighted_score_diff_between_span_and_cls

Compute score as product of target type logit (for span answer) and compute_score_diff_between_span_and_cls

compute_weighted_sum_short_answer_type_score_diff_between_span_and_cls

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.

initialize_scorer

Factory method to initialize scorer.

Classes

SupportedSpanScorers

Enumeration of supported scoring algorithms.