From 6e33d91cc48c9ec36ceaf7cf298fba726fc9a1d1 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Thu, 21 Jan 2021 09:40:12 +0100
Subject: [PATCH] added vaiable in script print_results.py to control the
 variable to output

---
 UD_any/print_results.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/UD_any/print_results.py b/UD_any/print_results.py
index 2596c56..8a934f7 100755
--- a/UD_any/print_results.py
+++ b/UD_any/print_results.py
@@ -6,6 +6,8 @@ import math
 
 if __name__ == "__main__" :
 
+  scoreCol = -1
+
   metrics = ["LAS","UAS","Tokens","Words","Sentences","UPOS","UFeats","Lemmas"]
 
   output = []
@@ -39,7 +41,7 @@ if __name__ == "__main__" :
           if splited[0] not in outputByModelScore[corpus][model] :
             outputByModelScore[corpus][model][splited[0]] = []
 
-          outputByModelScore[corpus][model][splited[0]].append([corpus, splited[0], splited[-1], model])
+          outputByModelScore[corpus][model][splited[0]].append([corpus, splited[0], splited[scoreCol], model])
 
   for corpus in outputByModelScore :
     for model in outputByModelScore[corpus] :
-- 
GitLab