(answers, prediction,
is_regex)
| 65 | |
| 66 | |
| 67 | def is_correct(answers, prediction, |
| 68 | is_regex): |
| 69 | if is_regex: |
| 70 | metric_fn = regex_match_score |
| 71 | else: |
| 72 | metric_fn = exact_match_score |
| 73 | return metric_max_over_ground_truths( |
| 74 | metric_fn=metric_fn, prediction=prediction, ground_truths=answers) |
| 75 | |
| 76 | |
| 77 | def evaluate_predictions_impl(references, |
no test coverage detected
searching dependent graphs…