Skip to content

Commit ee41531

Browse files
authored
[Fix] Add handling for the Ellipsis case in bio_data_task evaluation (#2380)
1 parent 2f13380 commit ee41531

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opencompass/datasets/biodata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def extract_dict_text(text):
157157
matches = pattern.findall(text)
158158
if not matches:
159159
return None
160+
if [match for match in matches][-1] == '{...}':
161+
return None
160162
return [match for match in matches][-1]
161163

162164

0 commit comments

Comments
 (0)