@staticmethod
def compute(guess: str, answers: List[str]) -> 'F1Metric':
    if ((guess is None) or (answers is None)):
        return AverageMetric(0, 0)
    g_tokens = normalize_answer(guess).split()
    scores = [F1Metric._prec_recall_f1_score(g_tokens, normalize_answer(a).split()) for a in answers]
    return F1Metric(max((f1 for (p, r, f1) in scores)), 1)
@staticmethod
def compute(guess: str, answers: List[str]) -> 'F1Metric':
    if ((guess is None) or (answers is None)):
        return AverageMetric(0, 0)
    g_tokens = normalize_answer(guess).split()
    scores = [F1Metric._prec_recall_f1_score(g_tokens, normalize_answer(a).split()) for a in answers]
    return F1Metric(max((f1 for (p, r, f1) in scores)), 1)