File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -173,19 +173,19 @@ def generate_dataset(
173
173
instance = ["" ] * len (ids )
174
174
175
175
if config ["output_type" ] == "loglikelihood" :
176
- instance = [x ["arguments" ][0 ][ 0 ] for x in data ]
177
- labels = [x ["arguments" ][0 ][ 1 ] for x in data ]
176
+ instance = [x ["arguments" ]["gen_args_0" ][ "arg_0" ] for x in data ]
177
+ labels = [x ["arguments" ]["gen_args_0" ][ "arg_1" ] for x in data ]
178
178
elif config ["output_type" ] == "multiple_choice" :
179
179
instance = [
180
- x ["arguments" ][0 ][ 0 ]
180
+ x ["arguments" ]["gen_args_0" ][ "arg_0" ]
181
181
+ "\n \n "
182
182
+ "\n " .join ([f"- { y [1 ]} " for y in x ["arguments" ]])
183
183
for x in data
184
184
]
185
185
elif config ["output_type" ] == "loglikelihood_rolling" :
186
- instance = [x ["arguments" ][0 ][ 0 ] for x in data ]
186
+ instance = [x ["arguments" ]["gen_args_0" ][ "arg_0" ] for x in data ]
187
187
elif config ["output_type" ] == "generate_until" :
188
- instance = [x ["arguments" ][0 ][ 0 ] for x in data ]
188
+ instance = [x ["arguments" ]["gen_args_0" ][ "arg_0" ] for x in data ]
189
189
190
190
return pd .DataFrame (
191
191
{
You can’t perform that action at this time.
0 commit comments