From ca43b9d4e95a9e33cd414d71bd5a7978dfbfda71 Mon Sep 17 00:00:00 2001 From: zhulinJulia24 Date: Wed, 9 Apr 2025 11:02:18 +0800 Subject: [PATCH] update --- opencompass/datasets/subjective/commonbench.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opencompass/datasets/subjective/commonbench.py b/opencompass/datasets/subjective/commonbench.py index 7fee7528..1b634111 100644 --- a/opencompass/datasets/subjective/commonbench.py +++ b/opencompass/datasets/subjective/commonbench.py @@ -13,6 +13,7 @@ def post_process(judgement: str): xxx[[5]]xxx, and extract the score """ + judgement = judgement['prediction'] pattern = r'\[\[([\d.]+)\]\]' matched_result = re.findall(pattern, judgement) if matched_result: