Skip to content

Commit

Permalink
Merge pull request hankcs#1684 from yzhangcs/dev
Browse files Browse the repository at this point in the history
Correct the order of the returned P/R values
  • Loading branch information
hankcs authored Sep 18, 2021
2 parents f62adfa + 49a4c98 commit a94d9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hanlp/components/srl/span_rank/srl_eval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def compute_srl_f1(sentences, gold_srl, predictions, gold_path=None) -> SRLScore
print_to_conll(sentences, predictions, temp_output, gold_predicates)

# Evaluate twice with official script.
conll_recall, conll_precision, conll_f1 = official_conll_05_evaluate(temp_output, gold_path)
conll_precision, conll_recall, conll_f1 = official_conll_05_evaluate(temp_output, gold_path)
return SRLScores(unlabeled_precision, unlabeled_recall, unlabeled_f1, precision, recall, f1, conll_precision,
conll_recall, conll_f1, label_confusions, num_sents)

Expand Down

0 comments on commit a94d9d8

Please sign in to comment.