Update README.md
Browse files
README.md
CHANGED
|
@@ -6,62 +6,35 @@ task_categories:
|
|
| 6 |
viewer: false
|
| 7 |
---
|
| 8 |
# Math-Strike Dataset
|
| 9 |
-
|
| 10 |
## Dataset Description
|
| 11 |
-
|
| 12 |
-
**Math-Strike** is a novel dataset featuring real and synthetic strike-outs, component-level annotations, and aligned LaTeX, designed to support research on strike-out removal and handwritten mathematical formula recognition.
|
| 13 |
-
|
| 14 |
-
Handwritten STEM manuscripts often contain strike-outs, overwrites, and other markings that disrupt mathematical content structure and reduce OCR/VLM recognition accuracy. This dataset provides a rigorous benchmark for training and evaluating models on connected-component classification, geometry-aware inpainting, and downstream compilable LaTeX generation.
|
| 15 |
|
| 16 |
The collection originates from the 2024-2025 mid-term and final examinations of a university's Multivariate Calculus Elite class.
|
| 17 |
|
| 18 |
### Dataset Subsets
|
| 19 |
-
|
| 20 |
The dataset is divided into two main subsets, easily accessible via Hugging Face's configuration system:
|
| 21 |
-
|
| 22 |
- **`real` (Math-Strike-Real)**: Contains only real, authentic strike-outs collected directly from student exam papers.
|
| 23 |
- **`synth` (Math-Strike-Synth)**: Contains synthetic strike-outs generated using an augmentation taxonomy of 20 diverse strike-out styles (e.g., wavy, zigzag, multi-crossed, blackout) to address class imbalance and improve model robustness against complex occlusion patterns.
|
| 24 |
-
|
| 25 |
Additionally, the `original_img` folder is provided in the repository, containing the full page-level raw scans with minimal border cropping and all original marks.
|
| 26 |
|
| 27 |
## Dataset Structure
|
| 28 |
-
|
| 29 |
### Data Instances
|
| 30 |
-
|
| 31 |
When loading the dataset via the `datasets` library, each instance represents a single connected component extracted from the manuscript.
|
| 32 |
-
|
| 33 |
-
**Example instance:**
|
| 34 |
-
|
| 35 |
-
```json
|
| 36 |
-
{
|
| 37 |
-
"id": 85235,
|
| 38 |
-
"page_img": "20250523024843071_page001.png",
|
| 39 |
-
"bbox": [5694, 6677, 91, 112],
|
| 40 |
-
"centroid": [5739.5, 6733.0],
|
| 41 |
-
"box_area": 4506,
|
| 42 |
-
"label": 0,
|
| 43 |
-
"comp_size": [112, 91],
|
| 44 |
-
"image": "<...>"
|
| 45 |
-
"file": "<...>"
|
| 46 |
-
}
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
### Data Fields
|
| 50 |
-
|
| 51 |
-
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
| 60 |
|
| 61 |
## Usage
|
| 62 |
-
|
| 63 |
You can easily load the dataset using the Hugging Face `datasets` library. The images and metadata are already pre-aligned in Parquet format.
|
| 64 |
-
|
| 65 |
```python
|
| 66 |
from datasets import load_dataset
|
| 67 |
|
|
@@ -80,11 +53,9 @@ train_data[0]["image"].show()
|
|
| 80 |
```
|
| 81 |
|
| 82 |
## License
|
| 83 |
-
|
| 84 |
The Math-Strike dataset is distributed under the **CC-BY-NC 4.0** license for non-commercial research and educational use.
|
| 85 |
|
| 86 |
## Citation
|
| 87 |
-
|
| 88 |
If you find this dataset useful for your research, please cite our paper:
|
| 89 |
|
| 90 |
```
|
|
|
|
| 6 |
viewer: false
|
| 7 |
---
|
| 8 |
# Math-Strike Dataset
|
|
|
|
| 9 |
## Dataset Description
|
| 10 |
+
**Math-Strike** is a novel dataset featuring real and synthetic strike-outs, component-level annotations, and aligned LaTeX, designed to support research on strike-out removal and handwritten mathematical formula recognition. Handwritten STEM manuscripts often contain strike-outs, overwrites, and other markings that disrupt mathematical content structure and reduce OCR/VLM recognition accuracy. This dataset provides a rigorous benchmark for training and evaluating models on connected-component classification, geometry-aware inpainting, and downstream compilable LaTeX generation.
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
The collection originates from the 2024-2025 mid-term and final examinations of a university's Multivariate Calculus Elite class.
|
| 13 |
|
| 14 |
### Dataset Subsets
|
|
|
|
| 15 |
The dataset is divided into two main subsets, easily accessible via Hugging Face's configuration system:
|
|
|
|
| 16 |
- **`real` (Math-Strike-Real)**: Contains only real, authentic strike-outs collected directly from student exam papers.
|
| 17 |
- **`synth` (Math-Strike-Synth)**: Contains synthetic strike-outs generated using an augmentation taxonomy of 20 diverse strike-out styles (e.g., wavy, zigzag, multi-crossed, blackout) to address class imbalance and improve model robustness against complex occlusion patterns.
|
|
|
|
| 18 |
Additionally, the `original_img` folder is provided in the repository, containing the full page-level raw scans with minimal border cropping and all original marks.
|
| 19 |
|
| 20 |
## Dataset Structure
|
|
|
|
| 21 |
### Data Instances
|
|
|
|
| 22 |
When loading the dataset via the `datasets` library, each instance represents a single connected component extracted from the manuscript.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
### Data Fields
|
| 24 |
+
| Field | Type | Description |
|
| 25 |
+
| :--- | :--- | :--- |
|
| 26 |
+
| `id` | int | Global component identifier. |
|
| 27 |
+
| `page_img` | string | Source page filename. |
|
| 28 |
+
| `bbox` | list | Bounding box coordinates in pixels. |
|
| 29 |
+
| `centroid` | list | Geometric centre (x, y) of the component. |
|
| 30 |
+
| `box_area` / `pixel_area` | int | Foreground-pixel count within the component. |
|
| 31 |
+
| `label` | int | 0 = retained (valid mathematical symbol), 1 = removed (strike-out/noise). |
|
| 32 |
+
| `comp_size` | list | Height and width of the bounding box. |
|
| 33 |
+
| `image` | Image | The actual cropped PNG image of the component. |
|
| 34 |
+
| `file` | string | The actual path of the image. |
|
| 35 |
|
| 36 |
## Usage
|
|
|
|
| 37 |
You can easily load the dataset using the Hugging Face `datasets` library. The images and metadata are already pre-aligned in Parquet format.
|
|
|
|
| 38 |
```python
|
| 39 |
from datasets import load_dataset
|
| 40 |
|
|
|
|
| 53 |
```
|
| 54 |
|
| 55 |
## License
|
|
|
|
| 56 |
The Math-Strike dataset is distributed under the **CC-BY-NC 4.0** license for non-commercial research and educational use.
|
| 57 |
|
| 58 |
## Citation
|
|
|
|
| 59 |
If you find this dataset useful for your research, please cite our paper:
|
| 60 |
|
| 61 |
```
|