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

Added error message in print_result

parent 973e5adc
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,11 @@ if __name__ == "__main__" :
output.append(outputByModelScore[corpus][model][metric][0])
output[-1][2] = score
if len(output) == 0 :
print("ERROR : Output length is 0", file=sys.stderr)
print(" did you run evaluate.sh ?", file=sys.stderr)
exit(1)
maxColLens = [0 for _ in range(len(output[0]))]
output = [["Corpus","Metric","F1.score","Model"]] + output
......
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