Skip to content

Commit

Permalink
fix eval calls
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Mar 3, 2020
1 parent d4aebe0 commit 29f46e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uuparser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ def evaluate(gold,test,conllu):
print("Writing to " + scoresfile)
if not conllu:
#os.system('perl src/utils/eval.pl -g ' + gold + ' -s ' + test + ' > ' + scoresfile + ' &')
os.system('perl src/utils/eval.pl -g ' + gold + ' -s ' + test + ' > ' + scoresfile )
os.system(f'perl {UTILS_DIR}/eval.pl -g {gold} -s {test} > {scoresfile}')
else:
os.system('python src/utils/evaluation_script/conll17_ud_eval.py -v -w src/utils/evaluation_script/weights.clas ' + gold + ' ' + test + ' > ' + scoresfile)
os.system(f'python {UTILS_DIR}/evaluation_script/conll17_ud_eval.py -v -w {UTILS_DIR}/evaluation_script/weights.clas {gold} {test} > {scoresfile}')
score = get_LAS_score(scoresfile,conllu)
return score

Expand Down

0 comments on commit 29f46e4

Please sign in to comment.