primeqa.mrc.metrics.nq_f1.nq_eval.compute_f1#

primeqa.mrc.metrics.nq_f1.nq_eval.compute_f1(answer_stats, prefix='')#

Computes F1, precision, recall for a list of answer scores.

Parameters
  • answer_stats – List of per-example scores.

  • prefix – Prefix to prepend to score dictionary.

Returns

Dictionary mapping string names to scores.