(completion, answer)
| 147 | |
| 148 | |
| 149 | def is_correct(completion, answer): |
| 150 | gold = extract_answer_hf(answer) |
| 151 | assert gold != INVALID_ANS, "No ground truth answer found in the document." |
| 152 | return extract_answer(completion) == gold |
| 153 | |
| 154 | |
| 155 | if __name__ == '__main__': |
no test coverage detected