MCPcopy Create free account
hub / github.com/THUDM/GLM / exact_match_score

Function exact_match_score

tasks/superglue/evaluate.py:49–50  ·  view source on GitHub ↗
(prediction, ground_truth)

Source from the content-addressed store, hash-verified

47
48
49def exact_match_score(prediction, ground_truth):
50 return normalize_answer(prediction) == normalize_answer(ground_truth)
51
52
53def metric_max_over_ground_truths(metric_fn, prediction, ground_truths):

Callers

nothing calls this directly

Calls 1

normalize_answerFunction · 0.85

Tested by

no test coverage detected