(s)
| 79 | return model |
| 80 | |
| 81 | def is_number(s): |
| 82 | try: |
| 83 | float(s) |
| 84 | return True |
| 85 | except ValueError: |
| 86 | pass |
| 87 | try: |
| 88 | import unicodedata |
| 89 | unicodedata.numeric(s) |
| 90 | return True |
| 91 | except (TypeError, ValueError): |
| 92 | pass |
| 93 | return False |
| 94 | |
| 95 | def extract_ans(completion): |
| 96 |