Skip to content
Snippets Groups Projects
Commit a5d5d2fc authored by Franck Dary's avatar Franck Dary
Browse files

Changed metric tokens with words in print results

parent ecf74299
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment