image imagewidth (px) 1.7k 1.7k | page_num int64 1 10 | source_file stringclasses 1
value | source_path stringclasses 1
value | total_pages int64 10 10 | markdown stringclasses 10
values | inference_info stringclasses 1
value |
|---|---|---|---|---|---|---|
1 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Directive 017
**Release date:** December 11, 2024
**Effective date:** December 11, 2024
**Replaces previous edition issued March 17, 2022**
## Measurement Requirements for Oil and Gas Operations
### Contents
- **Introduction**
- Purpose of This Directive
- What's New in This Edition?
- Intent
... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
2 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 1.9.2 Schematic Updates
- Page 1-33
## 1.9.3 Implementation
- Page 1-34
## 1.9.4 Schematic Availability
- Page 1-34
## 1.10 Facility Delineation Requirements
- Page 1-34
## 2 Calibration and Proving
### 2.1 Definitions
- Page 2-1
### 2.2 Applicability
- Page 2-2
### 2.3 Frequency
- ... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
3 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 3.2 Metering Difference
- Description
- Target Metering Difference
## 4 Gas Measurement
### 4.1 General Requirements
### 4.2 Gas Measurement and Accounting Requirements for Various Battery/Facility Types
#### 4.2.1 Oil/Bitumen Batteries
#### 4.2.2 Gas Batteries/Facilities
### 4.3 Base Re... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
4 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 5.6.1 Exceptions
- Page 5-29
## 5.6.2 Applications
- Page 5-32
## 5.6.3 Considerations for Site-specific Approval
- Page 5-33
## 5.7 Gas Effluent Wells Exemption and Reduction for Testing Frequency
- Page 5-33
## 6 Conventional Oil Measurement
- Page 6-1
### 6.1 General Requirements
... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
5 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 7.2.3 Testing Requirements
- Page 7-4
## 7.2.4 Production Accounting and Reporting Requirements
- Page 7-5
## 7.3 Gas Multiwell Proration Outside SE Alberta Batteries
- Page 7-6
### 7.3.1 Well Testing Requirements
- Page 7-7
### 7.3.2 Production Volume Calculations
- Page 7-9
### 7.3... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
6 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | ---
Alberta Energy Regulator
8.4.7 Gas Cycling Scheme……………………………………………………………8-24
8.4.8 Gas Sales/Delivery…………………………………………………………8-25
8.4.9 Gas Plants and Gas Gathering Systems……………………………………8-26
8.4.10 Conventional Oil Facilities………………………………………………8-27
8.4.11 Multiwell Proration Oil Battery…………………………………………8-28
8.4.12 Mi... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
7 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 10.5.1 Tank Gauging
- Page 10-13
## 10.5.2 Weigh Scales
- Page 10-14
## 10.5.3 Meters
- Page 10-14
## 11 Acid Gas and Sulphur Measurement
### 11.1 General Requirements
- Page 11-1
### 11.2 Acid Gas Measurement
#### 11.2.1 Determining Acid Gas on a Dry Basis
- Page 11-2
### 11.3 Sulph... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
8 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 12.3.7 Solvent Measuring
12-15
## 12.3.8 Production Measurement
12-16
## 12.3.9 Well Production Measurement
12-16
## 12.3.10 Proration Factors
12-18
## 12.3.11 Internal Inspection Exceptions
12-18
## 12.4 Single Point Measurement Uncertainties
12-19
## 13 Condensate and High-Vapour-... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
9 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | # Alberta Energy Regulator
## 14.10 Electronic Flow Measurement for Liquid Systems
- Performance Evaluation
- Test Cases for Verification of Oil Flow Calculation Programs
- Test Cases for Verification of NGL and LPG Flow Calculation Programs
## 14.11 Records
- The Daily Report
- The Monthly Report
- The Event Log
- E... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] | |
10 | Directive017.pdf | /home/dck/Programming/ducklake/vlm_llm_doc_processing/pdfs/Directive017.pdf | 10 | Alberta Energy Regulator
# Tables
| Table | Description | Page |
|-------|-------------------------------------------------------------------------------------------------------|------|
| 2.1 | Meter proving frequency requirem... | [{"model_id": "lightonai/LightOnOCR-0.9B-32k-1025", "model_name": "LightOnOCR", "vocab_size": "32k", "column_name": "markdown", "timestamp": "2025-10-25T00:32:00.990057", "temperature": 0.2, "top_p": 0.9, "max_tokens": 6500, "target_size": 1288}] |
Document OCR using LightOnOCR-0.9B-32k-1025
This dataset contains OCR results from images in stckmn/ocr-input-Directive017-1761352140 using LightOnOCR, a fast and compact 1B OCR model.
Processing Details
- Source Dataset: stckmn/ocr-input-Directive017-1761352140
- Model: lightonai/LightOnOCR-0.9B-32k-1025
- Vocabulary Size: 32k tokens
- Number of Samples: 10
- Processing Time: 1.7 min
- Processing Date: 2025-10-25 00:32 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 32
- Target Image Size: 1288px (longest dimension)
- Max Model Length: 8,192 tokens
- Max Output Tokens: 6,500
- Temperature: 0.2
- Top P: 0.9
- GPU Memory Utilization: 80.0%
Model Information
LightOnOCR is a fast, compact OCR model that excels at:
- ⚡ Production Speed - 5.71 pages/second on H100 GPU
- 🎯 Compact Size - Only 1B parameters
- 📐 LaTeX formulas - Mathematical notation in LaTeX format
- 📊 Tables - Extracted and formatted as markdown
- 📝 Document structure - Hierarchy and layout preservation
- 🌍 Multilingual - Optimized for European languages
- 🔤 Flexible vocabulary - 151k/32k/16k token variants
Vocabulary Variants
- 151k tokens: Full vocabulary, supports all languages
- 32k tokens: European languages optimized (~12% faster decoding)
- 16k tokens: European languages optimized (~12% faster decoding)
Dataset Structure
The dataset contains all original columns plus:
markdown: The extracted text in markdown format with LaTeX formulasinference_info: JSON list tracking all OCR models applied to this dataset
Usage
from datasets import load_dataset
import json
# Load the dataset
dataset = load_dataset("{output_dataset_id}", split="train")
# Access the markdown text
for example in dataset:
print(example["markdown"])
break
# View all OCR models applied to this dataset
inference_info = json.loads(dataset[0]["inference_info"])
for info in inference_info:
print(f"Column: {info['column_name']} - Model: {info['model_id']}")
Reproduction
This dataset was generated using the uv-scripts/ocr LightOnOCR script:
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/lighton-ocr.py \
stckmn/ocr-input-Directive017-1761352140 \
<output-dataset> \
--vocab-size 32k \
--image-column image \
--batch-size 32
Performance
- Processing Speed: ~0.10 images/second
- Benchmark Score: 76.1% overall (across diverse document types)
- Optimization: Native resolution ViT + lightweight decoder
Generated with 🤖 UV Scripts
- Downloads last month
- 9