From da9dd0dd16d6c95072e15c25e2e0cca3d27db770 Mon Sep 17 00:00:00 2001 From: Carlos Ramisch <carlosramisch@gmail.com> Date: Thu, 14 Nov 2024 02:22:07 +0100 Subject: [PATCH] Corrected bug in evaluation script: precision and recall were inversed for morphological features! --- lib/accuracy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accuracy.py b/lib/accuracy.py index a9038ba..3238d2b 100755 --- a/lib/accuracy.py +++ b/lib/accuracy.py @@ -224,5 +224,5 @@ if __name__ == "__main__": acc['correct_oov_las'] += 1 acc['total_tokens'] += 1 if args.name_tag == 'feats': - tp_count_feats(tok_gold, tok_pred, prf) + tp_count_feats(tok_pred, tok_gold, prf) print_results(pred_corpus.name(), args, acc, prf, args.name_tag == "head") -- GitLab