PaperLab.space
Docs / Metrics reference
Reference

Metrics reference

Every built-in metric and its options.

Run paperlab-space metrics to list the metrics in your installed version. For how normalisation and label extraction work, see the metrics guide.

accuracy

Classification accuracy. With labels, a free-form answer that mentions exactly one label counts as that label.

Needs an answer key: yes. Higher is better: yes.

OptionTypeDefaultDescription
labelslist of stringsnoneClass labels. A free-form answer that mentions exactly one of them counts as it.
ignore_casebooleantrueCompare case-insensitively.
trim_punctuationbooleantrueStrip punctuation and quotes from the start and end.
ignore_punctuationbooleanfalseRemove all punctuation, including inside the text.
nfkcbooleantrueApply Unicode NFKC, so full-width characters equal their ASCII forms.
count_failedbooleantrueScore failed requests as wrong. false leaves them out.

exact_match

Share of rows where the output equals a reference answer after normalisation.

Needs an answer key: yes. Higher is better: yes.

OptionTypeDefaultDescription
ignore_casebooleantrueCompare case-insensitively.
trim_punctuationbooleantrueStrip punctuation and quotes from the start and end.
ignore_punctuationbooleanfalseRemove all punctuation, including inside the text.
nfkcbooleantrueApply Unicode NFKC, so full-width characters equal their ASCII forms.
count_failedbooleantrueScore failed requests as wrong. false leaves them out.

f1

Classification precision, recall, and F1 over the gold labels (macro-averaged by default).

Needs an answer key: yes. Higher is better: yes.

OptionTypeDefaultDescription
averagemacro, micro, weighted"macro"How per-class F1 scores are combined.
labelslist of stringsnoneClass labels. A free-form answer that mentions exactly one of them counts as it.
ignore_casebooleantrueCompare case-insensitively.
trim_punctuationbooleantrueStrip punctuation and quotes from the start and end.
ignore_punctuationbooleanfalseRemove all punctuation, including inside the text.
nfkcbooleantrueApply Unicode NFKC, so full-width characters equal their ASCII forms.
count_failedbooleantrueScore failed requests as wrong. false leaves them out.

token_f1

Token-overlap F1 between output and reference (SQuAD-style), averaged over rows. Characters count as tokens in Chinese, Japanese, Thai, and Burmese.

Needs an answer key: yes. Higher is better: yes.

OptionTypeDefaultDescription
ignore_casebooleantrueCompare case-insensitively.
ignore_punctuationbooleantrueRemove all punctuation, including inside the text.
remove_articlesbooleanfalseRemove English articles (a, an, the), as in SQuAD.
nfkcbooleantrueApply Unicode NFKC, so full-width characters equal their ASCII forms.
count_failedbooleantrueScore failed requests as wrong. false leaves them out.