Evaluated on the 961-sample S-C test split for HMER (LaTeX Expression Recognition Rate - ExpRate and token Edit Distance (ED)):
This adapter was trained on the following prompt formats, which can be tested using the accompanying full-stack application:
Prompt: "I have an image of a handwritten mathematical expression. Please write out the expression of the formula in the image using LaTeX format"
Prompt: "I have an image of a handwritten mathematical expression. Please identify and count each distinct visible mathematical symbol in the image, and then provide its corresponding LaTeX format"
Prompt: "I have an image of a handwritten mathematical expression. Please generate the abstract syntax tree (AST) of the formula in the image, and then provide its corresponding LaTeX format."
Prompt: "I have an image of a handwritten mathematical expression and its OCR recognition result. Please help me to detect possible errors in the recognition result and mark the places where errors occur with <error_start> <error_end> and <deleted>.
erroneous formula: [candidate]
Marked formula:"
Prompt: "I have an image of a handwritten mathematical expression and a predicted formula with error tags, correct the formula by modifying the parts marked with <error_start> and <error_end> and inserting content where <deleted> are present. Output the modifications as REPLACE, INSERT, or DELETE operations.
Marked formula: [tagged candidate]
Correction log:"