(string)
| 69 | |
| 70 | |
| 71 | def _remove_right_units(string): |
| 72 | # "\\text{ " only ever occurs (at least in the val set) when describing units |
| 73 | if "\\text{ " in string: |
| 74 | splits = string.split("\\text{ ") |
| 75 | assert len(splits) == 2 |
| 76 | return splits[0] |
| 77 | else: |
| 78 | return string |
| 79 | |
| 80 | |
| 81 | def _fix_sqrt(string): |