The English rules in render.py keep the grammar unambiguous, but some of the results go against how people actually say things.
input
output (correct under the current rules)
what most people mean
the square root of x squared plus y squared
sqrt(x^2) + y^2
sqrt(x^2 + y^2)
x plus y all squared
x + y a^2 (broken: "all" isn't supported)
(x + y)^2
minus b over 2 a
-frac(b, 2) a
frac(-b, 2 a)
sin of 2 theta
sin(2) theta
sin(2 theta)
e to the i pi
e^i pi
e^(i pi)
e to the x squared
e^x^2
ambiguous
To decide:
Which of these should follow natural speech, accepting some ambiguity, and which stay strict?
Should "all squared" / "all over" be supported as closing words?
For the ambiguous cases, should the model pick the most likely reading (data weighting), or should we say ambiguity is out of scope?
Whatever we choose should be written up in the render.py module docstring and covered in hand_test.jsonl.
The English rules in `render.py` keep the grammar unambiguous, but some of the results go against how people actually say things.
| input | output (correct under the current rules) | what most people mean |
|---|---|---|
| the square root of x squared plus y squared | `sqrt(x^2) + y^2` | `sqrt(x^2 + y^2)` |
| x plus y all squared | `x + y a^2` (broken: "all" isn't supported) | `(x + y)^2` |
| minus b over 2 a | `-frac(b, 2) a` | `frac(-b, 2 a)` |
| sin of 2 theta | `sin(2) theta` | `sin(2 theta)` |
| e to the i pi | `e^i pi` | `e^(i pi)` |
| e to the x squared | `e^x^2` | ambiguous |
**To decide:**
- Which of these should follow natural speech, accepting some ambiguity, and which stay strict?
- Should "all squared" / "all over" be supported as closing words?
- For the ambiguous cases, should the model pick the most likely reading (data weighting), or should we say ambiguity is out of scope?
Whatever we choose should be written up in the `render.py` module docstring and covered in `hand_test.jsonl`.
As the end goal for isotope, we want the language to be as vague as possible and the model to still understand what we want.
"all squared" "all over" and other similar words should be supported
let's keep ambiguity out of scope for now
- As the end goal for isotope, we want the language to be as vague as possible and the model to still understand what we want.
- "all squared" "all over" and other similar words should be supported
- let's keep ambiguity out of scope for now
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The English rules in
render.pykeep the grammar unambiguous, but some of the results go against how people actually say things.sqrt(x^2) + y^2sqrt(x^2 + y^2)x + y a^2(broken: "all" isn't supported)(x + y)^2-frac(b, 2) afrac(-b, 2 a)sin(2) thetasin(2 theta)e^i pie^(i pi)e^x^2To decide:
Whatever we choose should be written up in the
render.pymodule docstring and covered inhand_test.jsonl.