mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
update
This commit is contained in:
parent
403cbd9c6e
commit
ca43b9d4e9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user