Skip to content
Snippets Groups Projects
Commit da9dd0dd authored by Carlos Ramisch's avatar Carlos Ramisch
Browse files

Corrected bug in evaluation script: precision and recall were inversed for morphological features!

parent f09a5580
Branches
No related tags found
No related merge requests found
...@@ -224,5 +224,5 @@ if __name__ == "__main__": ...@@ -224,5 +224,5 @@ if __name__ == "__main__":
acc['correct_oov_las'] += 1 acc['correct_oov_las'] += 1
acc['total_tokens'] += 1 acc['total_tokens'] += 1
if args.name_tag == 'feats': 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") print_results(pred_corpus.name(), args, acc, prf, args.name_tag == "head")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment