SDK Usage
When to Use
Segmentation is useful when:- Batch-scanned documents are combined into a single PDF
- Multiple document types are stapled together
- You need to apply different processing to different sections
Response Format
Process Each Segment
After segmentation, process each segment separately:REST API
Python Example
Custom Segmentation Schema
Define expected segment types for better accuracy:Related
- Structured Extraction - Extract data from segments
- Handling Long Documents - TOC-based segmentation
Try Datalab
Get started with our API in less than a minute. We include free credits.