davanstrien HF Staff commited on
Commit
4a9381a
·
verified ·
1 Parent(s): 83d5076

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +12 -63
README.md CHANGED
@@ -1,24 +1,25 @@
1
  ---
2
  tags:
3
  - ocr
 
4
  - document-processing
5
- - deepseek
6
- - deepseek-ocr-2
7
  - markdown
8
  - uv-script
9
  - generated
10
  ---
11
 
12
- # Document OCR using DeepSeek-OCR-2
13
 
14
- This dataset contains markdown-formatted OCR results from images in [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample) using DeepSeek-OCR-2.
15
 
16
  ## Processing Details
17
 
18
  - **Source Dataset**: [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample)
19
- - **Model**: [deepseek-ai/DeepSeek-OCR-2](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2)
 
20
  - **Number of Samples**: 50
21
- - **Processing Time**: 4.4 min
22
  - **Processing Date**: 2026-07-08 16:48 UTC
23
 
24
  ### Configuration
@@ -26,66 +27,14 @@ This dataset contains markdown-formatted OCR results from images in [davanstrien
26
  - **Image Column**: `image`
27
  - **Output Column**: `markdown`
28
  - **Dataset Split**: `train`
29
- - **Batch Size**: 8
30
- - **Max Model Length**: 8,192 tokens
31
- - **Max Output Tokens**: 8,192
32
- - **GPU Memory Utilization**: 80.0%
33
-
34
- ## Model Information
35
-
36
- DeepSeek-OCR-2 is a 3B parameter vision-language model featuring Visual Causal
37
- Flow architecture for more human-like visual encoding. Building on DeepSeek-OCR v1,
38
- it offers enhanced document understanding with dynamic resolution up to
39
- (0-6)x768x768 + 1x1024x1024 patches.
40
-
41
- ### Capabilities
42
- - LaTeX equations - Mathematical formulas preserved in LaTeX format
43
- - Tables - Extracted and formatted as HTML/markdown
44
- - Document structure - Headers, lists, and formatting maintained
45
- - Image grounding - Spatial layout and bounding box information
46
- - Complex layouts - Multi-column and hierarchical structures
47
- - Multilingual - Supports multiple languages
48
 
49
  ## Dataset Structure
50
 
51
- The dataset contains all original columns plus:
52
- - `markdown`: The extracted text in markdown format with preserved structure
53
- - `inference_info`: JSON list tracking all OCR models applied to this dataset
54
-
55
- ## Usage
56
-
57
- ```python
58
- from datasets import load_dataset
59
- import json
60
-
61
- # Load the dataset
62
- dataset = load_dataset("{{output_dataset_id}}", split="train")
63
-
64
- # Access the markdown text
65
- for example in dataset:
66
- print(example["markdown"])
67
- break
68
-
69
- # View all OCR models applied to this dataset
70
- inference_info = json.loads(dataset[0]["inference_info"])
71
- for info in inference_info:
72
- print(f"Column: {{info['column_name']}} - Model: {{info['model_id']}}")
73
- ```
74
-
75
- ## Reproduction
76
-
77
- This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) DeepSeek-OCR-2 vLLM script:
78
-
79
- ```bash
80
- uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr2-vllm.py \\
81
- davanstrien/moh-bench-sample \\
82
- <output-dataset> \\
83
- --image-column image
84
- ```
85
-
86
- ## Performance
87
 
88
- - **Processing Speed**: ~0.2 images/second
89
- - **Processing Method**: Batch processing with vLLM (2-3x speedup over sequential)
90
 
91
  Generated with [UV Scripts](https://huggingface.co/uv-scripts)
 
1
  ---
2
  tags:
3
  - ocr
4
+ - structured-extraction
5
  - document-processing
6
+ - nuextract3
 
7
  - markdown
8
  - uv-script
9
  - generated
10
  ---
11
 
12
+ # NuExtract3 on davanstrien/moh-bench-sample
13
 
14
+ This dataset contains outputs from [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample) processed with [NuExtract3](https://huggingface.co/numind/NuExtract3), a 4B vision-language model for document understanding.
15
 
16
  ## Processing Details
17
 
18
  - **Source Dataset**: [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample)
19
+ - **Model**: [numind/NuExtract3](https://huggingface.co/numind/NuExtract3)
20
+ - **Mode**: markdown
21
  - **Number of Samples**: 50
22
+ - **Processing Time**: 9.7 min
23
  - **Processing Date**: 2026-07-08 16:48 UTC
24
 
25
  ### Configuration
 
27
  - **Image Column**: `image`
28
  - **Output Column**: `markdown`
29
  - **Dataset Split**: `train`
30
+ - **Temperature**: 0.2
31
+ - **Thinking Mode**: disabled
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  ## Dataset Structure
34
 
35
+ Original columns plus:
36
+ - `markdown`: NuExtract3 output (markdown)
37
+ - `inference_info`: JSON list tracking models applied to this dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
 
 
39
 
40
  Generated with [UV Scripts](https://huggingface.co/uv-scripts)