From 29e4d06119e11cfc44e22c58ba591e1ed581b477 Mon Sep 17 00:00:00 2001 From: markus583 Date: Sun, 19 May 2024 14:33:20 +0000 Subject: [PATCH] fix append --- wtpsplit/evaluation/intrinsic_pairwise.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wtpsplit/evaluation/intrinsic_pairwise.py b/wtpsplit/evaluation/intrinsic_pairwise.py index fe109cb0..457f5033 100644 --- a/wtpsplit/evaluation/intrinsic_pairwise.py +++ b/wtpsplit/evaluation/intrinsic_pairwise.py @@ -530,9 +530,7 @@ def main(args): acc_t = np.mean(acc_t) if score_t else None acc_punct = np.mean(acc_punct) if score_punct else None threshold = np.mean(thresholds) - u_indices.append(cur_u_indices["pred_indices"] if cur_u_indices["pred_indices"] else []) - true_indices.append(cur_u_indices["true_indices"] if cur_u_indices["true_indices"] else []) - length.append(cur_u_indices["length"]) + results[lang_code][dataset_name] = { "u": score_u,