Open bhpayne opened 1 year ago
While an arbitrary AST would be great, currently the Physics Derivation Graph uses SymPy to check steps. SymPy's Latex-to-AST is impressive.
My struggles with SymPy:
and a reminder to myself on SymPy's process: https://physicsderivationgraph.blogspot.com/2020/08/how-to-edit-sympy-latex-parser-and.html
Latex is for presentation. Getting an abstract syntax tree for a Latex math expression is a critical step for searchability and semantic enrichment.
a
,b
,x_1
,\vec{z}
) and operators (*
,\int
,>
)Caveat: scientists aren't consistent in their notation, so there might be conflicting ways to interpret a Latex math string.
Caveat: not all symbols to be identified are in the string. For example,
a b
might refer to "a multiplied by b"