From a5d5d2fcfe52b4f531165bd5078314f5ca154407 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Sat, 7 Dec 2019 12:30:13 +0100 Subject: [PATCH] Changed metric tokens with words in print results --- UD_any/print_results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UD_any/print_results.py b/UD_any/print_results.py index 69cdb4b..11277d0 100755 --- a/UD_any/print_results.py +++ b/UD_any/print_results.py @@ -6,7 +6,7 @@ import math if __name__ == "__main__" : - metrics = ["LAS","UAS","Tokens","Sentences","UPOS","UFeats","Lemmas"] + metrics = ["LAS","UAS","Words","Sentences","UPOS","UFeats","Lemmas"] output = [] outputByModelScore = dict() @@ -14,8 +14,8 @@ if __name__ == "__main__" : for pathToFile in glob.iglob("" + '*stderr') : for line in open(pathToFile, "r") : if "Error" in line or "ERROR" in line or "error" in line : - print(pathToFile,":") - print("\t"+line,end="") + print(pathToFile,":", file=sys.stderr) + print("\t"+line,end="", file=sys.stderr) for pathToFile in glob.iglob("" + '*stdout') : model = pathToFile.split("_UD_")[0] -- GitLab