Datasets:
The dataset viewer is not available for this dataset.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Dataset Card for MathWriting
Dataset Summary
The MathWriting dataset contains online handwritten mathematical expressions collected through a prompted interface and rendered to RGB images. It consists of 230,000 human-written expressions, each paired with its corresponding LaTeX string. The dataset is intended to support research in online and offline handwritten mathematical expression (HME) recognition.
Key features:
- Online handwriting converted to rendered RGB images.
- Each sample is labeled with a LaTeX expression.
- Includes splits:
train,val, andtest. - All samples in this release are human-written (no synthetic data).
- Image preprocessing includes resizing (max dimension ≤ 512 px), stroke width jitter, and subtle color perturbations.
Supported Tasks and Leaderboards
Primary Task:
- Handwritten Mathematical Expression Recognition (HMER): Given an image of a handwritten formula, predict its LaTeX representation.
This dataset is also suitable for:
- Offline HME recognition (from rendered images).
- Sequence modeling and encoder-decoder learning.
- Symbol layout analysis and parsing in math.
Dataset Structure
Each example has the following structure:
{
'image': <PIL.Image.Image in RGB mode>,
'latex': str, # the latex string"
'sample_id': str, # unique identifier
'split_tag': str, # "train", "val", or "test"
'data_type': str, # always "human" in this version
}
All samples are rendered from digital ink into JPEG images with randomized stroke width and light RGB variations for augmentation and realism.
Usage
To load the dataset:
from datasets import load_dataset
ds = load_dataset("deepcopy/MathWriting-Human")
sample = ds["train"][0]
image = sample["image"]
latex = sample["latex"]
Licensing Information
The dataset is licensed by Google LLC under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY-NC-SA 4.0).
Citation
Please cite the following paper if you use this dataset:
@misc{gervais2025mathwritingdatasethandwrittenmathematical,
title={MathWriting: A Dataset For Handwritten Mathematical Expression Recognition},
author={Philippe Gervais and Anastasiia Fadeeva and Andrii Maksai},
eprint={2404.10690},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2404.10690},
}
- Downloads last month
- 237