(s)
| 39 | |
| 40 | |
| 41 | def remove_boxed(s): |
| 42 | left = '\\boxed{' |
| 43 | try: |
| 44 | assert s[:len(left)] == left |
| 45 | assert s[-1] == '}' |
| 46 | return s[len(left):-1] |
| 47 | except Exception: |
| 48 | return None |
| 49 | |
| 50 | |
| 51 | def extract_boxed_answer(pred_str, strip_double_curly_brace=False): |
no outgoing calls
no test coverage detected