(self, completion)
| 103 | return completion |
| 104 | |
| 105 | def _extract_answer(self, completion): |
| 106 | match = re.findall(ANS_RE, completion) |
| 107 | if match: |
| 108 | return int(match[-1]) |
| 109 | else: |
| 110 | return INVALID_ANS |
| 111 | |
| 112 | def _is_correct(self, completion, answer): |
| 113 | gold = answer |