davanstrien HF Staff commited on
Commit
e2bb9c3
·
verified ·
1 Parent(s): c73c2e8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +85 -41
README.md CHANGED
@@ -1,43 +1,87 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: width
5
- dtype: int32
6
- - name: height
7
- dtype: int32
8
- - name: title
9
- dtype: string
10
- - name: page_number
11
- dtype: int32
12
- - name: total_pages
13
- dtype: int32
14
- - name: canvas_label
15
- dtype: string
16
- - name: date
17
- dtype: string
18
- - name: year
19
- dtype: string
20
- - name: publisher
21
- dtype: string
22
- - name: place
23
- dtype: string
24
- - name: source_manifest
25
- dtype: string
26
- - name: image
27
- dtype: image
28
- - name: markdown
29
- dtype: string
30
- - name: inference_info
31
- dtype: string
32
- splits:
33
- - name: train
34
- num_bytes: 119647315
35
- num_examples: 10
36
- download_size: 119577070
37
- dataset_size: 119647315
38
- configs:
39
- - config_name: default
40
- data_files:
41
- - split: train
42
- path: data/train-*
43
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - ocr
4
+ - document-processing
5
+ - dots-ocr-1.5
6
+ - multilingual
7
+ - markdown
8
+ - uv-script
9
+ - generated
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
+
12
+ # Document OCR using dots.ocr-1.5
13
+
14
+ This dataset contains OCR results from images in [davanstrien/nls-highland-news-sample](https://huggingface.co/datasets/davanstrien/nls-highland-news-sample) using DoTS.ocr-1.5, a 3B multilingual model with SOTA document parsing.
15
+
16
+ ## Processing Details
17
+
18
+ - **Source Dataset**: [davanstrien/nls-highland-news-sample](https://huggingface.co/datasets/davanstrien/nls-highland-news-sample)
19
+ - **Model**: [davanstrien/dots.ocr-1.5](https://huggingface.co/davanstrien/dots.ocr-1.5)
20
+ - **Number of Samples**: 10
21
+ - **Processing Time**: 6.4 min
22
+ - **Processing Date**: 2026-03-14 17:30 UTC
23
+
24
+ ### Configuration
25
+
26
+ - **Image Column**: `image`
27
+ - **Output Column**: `markdown`
28
+ - **Dataset Split**: `train`
29
+ - **Batch Size**: 16
30
+ - **Prompt Mode**: layout-only
31
+ - **Max Model Length**: 24,000 tokens
32
+ - **Max Output Tokens**: 24,000
33
+ - **GPU Memory Utilization**: 90.0%
34
+
35
+ ## Model Information
36
+
37
+ DoTS.ocr-1.5 is a 3B multilingual document parsing model that excels at:
38
+ - 100+ Languages — Multilingual document support
39
+ - Table extraction — Structured data recognition
40
+ - Formulas — Mathematical notation preservation
41
+ - Layout-aware — Reading order and structure preservation
42
+ - Web screen parsing — Webpage layout analysis
43
+ - Scene text spotting — Text detection in natural scenes
44
+
45
+ ## Dataset Structure
46
+
47
+ The dataset contains all original columns plus:
48
+ - `markdown`: The extracted text in markdown format
49
+ - `inference_info`: JSON list tracking all OCR models applied to this dataset
50
+
51
+ ## Usage
52
+
53
+ ```python
54
+ from datasets import load_dataset
55
+ import json
56
+
57
+ # Load the dataset
58
+ dataset = load_dataset("{output_dataset_id}", split="train")
59
+
60
+ # Access the markdown text
61
+ for example in dataset:
62
+ print(example["markdown"])
63
+ break
64
+
65
+ # View all OCR models applied to this dataset
66
+ inference_info = json.loads(dataset[0]["inference_info"])
67
+ for info in inference_info:
68
+ print(f"Column: {info['column_name']} - Model: {info['model_id']}")
69
+ ```
70
+
71
+ ## Reproduction
72
+
73
+ This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) DoTS OCR 1.5 script:
74
+
75
+ ```bash
76
+ uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/dots-ocr-1.5.py \
77
+ davanstrien/nls-highland-news-sample \
78
+ <output-dataset> \
79
+ --image-column image \
80
+ --batch-size 16 \
81
+ --prompt-mode layout-only \
82
+ --max-model-len 24000 \
83
+ --max-tokens 24000 \
84
+ --gpu-memory-utilization 0.9
85
+ ```
86
+
87
+ Generated with [UV Scripts](https://huggingface.co/uv-scripts)