Commit ·
7593b9a
1
Parent(s): fa7a872
Add Nanonets-OCR2 documentation to README
Browse files- Add Nanonets OCR2 (nanonets-ocr2.py) to available scripts section
- Highlight 3.75B params, enhanced quality, and Qwen2.5-VL base
- Add HF Jobs example for Nanonets OCR2
- Add local usage example
- Position as next-generation quality option
🤖 Generated with Claude Code
50 unmodified lines5152535455565758596061626364656667686998 unmodified lines16816917017117217317417517617717817918018118241 unmodified lines22422522622722822923023123250 unmodified lines- 🖼️ **Images** - Captions and descriptions included- ☑️ **Forms** - Checkboxes rendered as ☐/☑
### Nanonets OCR2 (`nanonets-ocr2.py`)
Next-generation Nanonets OCR using [nanonets/Nanonets-OCR2-3B](https://huggingface.co/nanonets/Nanonets-OCR2-3B) with improved accuracy:
- 🎯 **Enhanced quality** - 3.75B parameters for superior OCR accuracy- 📐 **LaTeX equations** - Mathematical formulas preserved in LaTeX format- 📊 **Advanced tables** - Improved HTML table extraction- 📝 **Document structure** - Headers, lists, formatting maintained- 🖼️ **Smart image captions** - Intelligent descriptions and captions- ☑️ **Forms** - Checkboxes rendered as ☐/☑- 🌍 **Multilingual** - Enhanced language support- 🔧 **Based on Qwen2.5-VL** - Built on state-of-the-art vision-language model
### SmolDocling (`smoldocling-ocr.py`)
Ultra-compact document understanding using [ds4sd/SmolDocling-256M-preview](https://huggingface.co/ds4sd/SmolDocling-256M-preview) with only 256M parameters:98 unmodified lines --max-model-len 16384 \ --batch-size 128
# Nanonets OCR2 - Next-gen quality with 3B modelhf jobs uv run \ --flavor l4x1 \ --secrets HF_TOKEN \ https://huggingface.co/datasets/uv-scripts/ocr/raw/main/nanonets-ocr2.py \ your-input-dataset \ your-output-dataset \ --batch-size 16
# NuMarkdown with reasoning traces for complex documentshf jobs uv run \ --flavor l4x4 \41 unmodified linesuv run rolm-ocr.py documents extracted-textuv run rolm-ocr.py images texts --shuffle --max-samples 100 # Random sample
# Nanonets OCR2 for highest qualityuv run nanonets-ocr2.py documents ocr-results
```
## 📁 Works WithREADME.md+25