File size: 1,138 Bytes
1f574db
 
 
 
 
 
 
 
 
c47fe23
1f574db
c47fe23
 
1f574db
 
 
 
 
 
8dc5578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 8961757.0
    num_examples: 4
  download_size: 8964031
  dataset_size: 8961757.0
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---

# Example Dataset for Surya OCR Finetuning

This dataset is an example that lays out the expected format for finetuning Surya OCR. 

## Data Requirements
    Image column: The input images (full pages, blocks, or single text lines — mix freely).
    Text column: The transcription corresponding to each image.
        For math content, ensure <math display="inline"></math> or <math display="block"></math> tags are wrapped around the latex

## Surya OCR supports:
    Various aspect ratios
    Different image types and qualities
    Full-page documents
    Cropped blocks of text
    Single-line snippets

The base surya model is trained on a wide range of samples from all these categories, and you can combine any of these types in your training dataset for more robust performance, as demonstrated in this example dataset.