c661773c303bed04081a342f93172a3e6fff8f80
Equation left sides are now a single variable (35%), a flat sum of 2-3 simple terms like x^2, 3 x, sin(x)^2 (30%), or a random expression up to depth 3 (35%). Before, x^2 + y^2 = r^2 never appeared in training. Hand-test exact 41.2% -> 47.1%, equation category 42.9% -> 78.6%. Fixes #2 Co-authored-by: Paul Tal <[email protected]>
isotope-typst
isotope-typst turns math written in plain English into Typst markup. For example, the integral from 0 to infinity of e to the minus x squared dx becomes $integral_0^infinity e^(-x^2) dif x$. It is a small encoder–decoder Transformer, built and trained from scratch in PyTorch on synthetic data.
Running it
You need uv and the Typst CLI (brew install typst).
./run.sh # generate data, train, and evaluate (~20 min on an M-series Mac)
uv run isotope "x squared plus 1" # translate a sentence
uv run isotope # interactive prompt