(pred_lns: List[str], tgt_lns: List[str], label_constraint: EventSchema, decoding_format='tree')
| 43 | |
| 44 | |
| 45 | def get_extract_metrics(pred_lns: List[str], tgt_lns: List[str], label_constraint: EventSchema, decoding_format='tree'): |
| 46 | predict_parser = get_predict_parser(format_name=decoding_format)( |
| 47 | schema=label_constraint) |
| 48 | return eval_pred( |
| 49 | predict_parser=predict_parser, |
| 50 | gold_list=tgt_lns, |
| 51 | pred_list=pred_lns |
| 52 | ) |
no test coverage detected