Skip to content

Commit

Permalink
返回值错误bug
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 19, 2022
1 parent 2b4dfad commit dd1cff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def final_f1_score(src_texts,

token_level_f1, detect_metrics, correct_metrcis = ctc_comp_f1_token_level(
src_texts, pred_texts, trg_texts)
sent_level_f1, sent_level_p, sent_level_r = ctc_comp_f1_sentence_level(
sent_level_p, sent_level_r, sent_level_f1 = ctc_comp_f1_sentence_level(
src_texts, pred_texts, trg_texts)
final_f1 = round(0.8*token_level_f1 + sent_level_f1*0.2, 4)

Expand Down

0 comments on commit dd1cff8

Please sign in to comment.