Downloads · 30 days
0
pawanmau01/insurance-policy-extractor
insurance-policy-extractor is a machine learning model from pawanmau01. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A robust pipeline to extract structured JSON data from two-wheeler insurance policy PDFs.
Downloads · 30 days
0
Access
Public
Updated May 10, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py12.8 KB · 77%
From the Hugging Face model README
A robust pipeline to extract structured JSON data from two-wheeler insurance policy PDFs.
Hybrid Approach:
pdfplumber / PyMuPDFQwen2.5-VL-3B-Instruct for fields not found via regex (handles scanned/image-based PDFs)pip install -r requirements.txt
python extract.py sample_policy.pdf
Or programmatically:
from extract import extract_policy
import json
result = extract_policy("path/to/policy.pdf", use_vlm=True)
print(json.dumps(result, indent=2))
{
"policy_number": "",
"customer_name": "",
"customer_address": "",
"make": "",
"model": "",
"variant": "",
"cc": "",
"manufacturing_year": "",
"engine_number": "",
"chassis_number": "",
"total_insured_value": "",
"total_premium_amount": "",
"breakdown": {
"own_damage_premium": "",
"liability_premium": ""
},
"financier_name": "",
"addons": {
"nil_dep": ""
}
}
Yes if found, No if explicitly absent, Not Found otherwise"Not Found"Uses Qwen/Qwen2.5-VL-3B-Instruct for vision-language extraction on scanned or complex-layout PDFs.
<!-- ml-intern-provenance -->This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.