diff --git a/UD_any/print_results.py b/UD_any/print_results.py index 2596c56df71b5a81d35e2f01b0de46a8530bf30b..8a934f77ff4d9ae04802d5cdf92458d4aca7541e 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] :