Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,24 +1,25 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- ocr
|
|
|
|
| 4 |
- document-processing
|
| 5 |
-
-
|
| 6 |
-
- deepseek-ocr-2
|
| 7 |
- markdown
|
| 8 |
- uv-script
|
| 9 |
- generated
|
| 10 |
---
|
| 11 |
|
| 12 |
-
#
|
| 13 |
|
| 14 |
-
This dataset contains
|
| 15 |
|
| 16 |
## Processing Details
|
| 17 |
|
| 18 |
- **Source Dataset**: [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample)
|
| 19 |
-
- **Model**: [
|
|
|
|
| 20 |
- **Number of Samples**: 50
|
| 21 |
-
- **Processing Time**:
|
| 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 |
-
- **
|
| 30 |
-
- **
|
| 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 |
-
|
| 52 |
-
- `markdown`:
|
| 53 |
-
- `inference_info`: JSON list tracking
|
| 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)
|