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

added vaiable in script print_results.py to control the variable to output

parent 0938f428
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,8 @@ import math ...@@ -6,6 +6,8 @@ import math
if __name__ == "__main__" : if __name__ == "__main__" :
scoreCol = -1
metrics = ["LAS","UAS","Tokens","Words","Sentences","UPOS","UFeats","Lemmas"] metrics = ["LAS","UAS","Tokens","Words","Sentences","UPOS","UFeats","Lemmas"]
output = [] output = []
...@@ -39,7 +41,7 @@ if __name__ == "__main__" : ...@@ -39,7 +41,7 @@ if __name__ == "__main__" :
if splited[0] not in outputByModelScore[corpus][model] : if splited[0] not in outputByModelScore[corpus][model] :
outputByModelScore[corpus][model][splited[0]] = [] 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 corpus in outputByModelScore :
for model in outputByModelScore[corpus] : for model in outputByModelScore[corpus] :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment