From f9036439325b7f073db9d395bc4e398247f73008 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Mon, 11 Jan 2021 13:54:06 +0100 Subject: [PATCH] Corrected a bug in print_results.py where lines where not grouped by lang --- UD_any/print_results.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UD_any/print_results.py b/UD_any/print_results.py index 976b85a..d7477a5 100755 --- a/UD_any/print_results.py +++ b/UD_any/print_results.py @@ -60,7 +60,7 @@ if __name__ == "__main__" : score = score.replace('-','').replace('%','') output.append(outputByModelScore[corpus][model][metric][0]) output[-1][2] = score - output[-1] = [baseScore] + output[-1] + output[-1] = [output[-1][0]] + [baseScore] + output[-1][1:] if len(output) == 0 : print("ERROR : Output length is 0", file=sys.stderr) @@ -68,7 +68,7 @@ if __name__ == "__main__" : exit(1) output.sort() - output = [val[1:] for val in output] + output = [[val[0]] + val[2:] for val in output] maxColLens = [0 for _ in range(len(output[0]))] -- GitLab