File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,13 @@ def main() -> None:
303303 if baseline_diff_pred :
304304 baseline_data [lang_pair ] = extract_data (baseline_diff_pred [0 ])
305305 else :
306- print (f"Baseline experiment has no diff_predictions file in { baseline_path } " )
306+ print (f"Checking experiments under { baseline_path } ..." )
307+ sub_baseline_path = os .path .join (baseline_path , "+" .join (trained_books ))
308+ baseline_diff_pred = glob .glob (os .path .join (sub_baseline_path , "diff_predictions*" ))
309+ if baseline_diff_pred :
310+ baseline_data [lang_pair ] = extract_data (baseline_diff_pred [0 ])
311+ else :
312+ print (f"Baseline experiment has no diff_predictions file in { sub_baseline_path } " )
307313
308314 print ("Writing data..." )
309315 rows = flatten_dict (data , chapters , baseline = baseline_data )
You can’t perform that action at this time.
0 commit comments