(s)
| 8 | INVALID_ANS = "[invalid]" |
| 9 | |
| 10 | def is_number(s): |
| 11 | try: |
| 12 | float(s) |
| 13 | return True |
| 14 | except ValueError: |
| 15 | pass |
| 16 | try: |
| 17 | import unicodedata |
| 18 | unicodedata.numeric(s) |
| 19 | return True |
| 20 | except (TypeError, ValueError): |
| 21 | pass |
| 22 | return False |
| 23 | |
| 24 | def extract_answer_wizard(completion): |
| 25 | text = completion.split('The answer is: ') |
no outgoing calls
no test coverage detected