mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
11 lines
189 B
Python
11 lines
189 B
Python
![]() |
import re
|
||
|
|
||
|
|
||
|
def extract_judge_label(text):
|
||
|
if isinstance(text, str):
|
||
|
match = re.findall(r'\\boxed{(.+?)}', text)
|
||
|
if match:
|
||
|
return match[-1]
|
||
|
|
||
|
return None
|