Skip to content

Commit 4289e39

Browse files
committed
fix bugs when evaluate calm
1 parent bc2969d commit 4289e39

File tree

1 file changed

+2
-1
lines changed
  • opencompass/datasets/calm/data_processing/prompt

1 file changed

+2
-1
lines changed

opencompass/datasets/calm/data_processing/prompt/CEI-B.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@
174174

175175
def get_prompt(task_name, prompt_style, item, prompt_style_str=''):
176176
base = base_prompt_dict[prompt_style]
177-
177+
if item['bi_edges'] == []:
178+
item['bi_edges'] = ""
178179
prompt = prompt_style_str + base % (item['di_edges'], item['bi_edges'],
179180
item['treatment'], item['outcome'])
180181
return prompt

0 commit comments

Comments
 (0)