This commit is contained in:
zhulinJulia24 2025-04-09 11:02:18 +08:00
parent 403cbd9c6e
commit ca43b9d4e9

View File

@ -13,6 +13,7 @@ def post_process(judgement: str):
xxx[[5]]xxx, and extract the score xxx[[5]]xxx, and extract the score
""" """
judgement = judgement['prediction']
pattern = r'\[\[([\d.]+)\]\]' pattern = r'\[\[([\d.]+)\]\]'
matched_result = re.findall(pattern, judgement) matched_result = re.findall(pattern, judgement)
if matched_result: if matched_result: