From c36a20b09e43a2916a561881a1b4ed015b034e37 Mon Sep 17 00:00:00 2001
From: Alice BRENON <alice.brenon@ens-lyon.fr>
Date: Fri, 22 Dec 2023 17:38:17 +0100
Subject: [PATCH] Fix bug in code reporting collisions between two annotations

---
 scripts/ML/splitMulti.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ML/splitMulti.py b/scripts/ML/splitMulti.py
index 9de1423..d2f76ca 100755
--- a/scripts/ML/splitMulti.py
+++ b/scripts/ML/splitMulti.py
@@ -23,7 +23,7 @@ def sortByAnswer(texts, errors, key, annotation):
         if previous is None:
             texts[key]['accept'] = annotation
         else:
-            TwoAnnotations(annotation, previous['label'], texts[key]['label'])
+            TwoAnnotations(annotation, previous['label'], annotation['label'])
             errors.add(key)
     else:
         texts[key]['reject'].append(annotation)
-- 
GitLab