def score_pair(self, paired_anno: annotation.PairedAnnotation) -> ScoredPair:
    """Scores paired annotation for standard metrics.

    Note that the query similarity based metrics are not included here.

    Args:
      paired_anno: The paired annotation and prediction to score.

    Returns:
      A ScoredPair object wrapping the example and the scores.
    """
    label = _normalize_and_get_label(paired_anno)
    rouge = self.get_rouge_L(paired_anno)
    bleurt = (
        self.get_bleurt(paired_anno) if self.bleurt_scorer is not None else None
    )
    f1 = self.get_f1(paired_anno)
    qsim = (
        self.qsim_model.is_paired_anno_duplicate(paired_anno)
        if self.qsim_model is not None
        else None
    )
    score = Score(rouge, f1, label, bleurt, qsim)
    return ScoredPair(score, paired_anno)
Scores paired annotation for standard metrics.

    Note that the query similarity based metrics are not included here.

    Args:
      paired_anno: The paired annotation and prediction to score.

    Returns:
      A ScoredPair object wrapping the example and the scores.
    
language/diffqg/metrics.py