paultal bce9647990 Generate equations with long left sides
Eq left sides were only y, f, x or a depth-0/1 expression, so x^2 + y^2 = r^2
never appeared in training and the model dropped everything after "=".
Left sides are now a single variable (35%), a flat sum of 2-3 textbook terms
like x^2, 3 x, sin(x)^2 (30%), or a random expression up to depth 3 (35%).
The overall length limit still applies.

The hand-test sentences for this live with the eval changes in #3.

Fixes #2
2026-11-27 01:22:36 +02:00
2026-11-27 00:24:05 +02:00
2026-11-27 00:24:05 +02:00

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
S
Description
No description provided
Readme
30 MiB
0 Stars 1 Watchers 0 Forks
2026-11-27 03:08:10 +02:00
Languages
Python 98.3%
Shell 1.7%