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