You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Bexara-COI (v1 baseline)

Status: internal baseline. Not the production extractor. A fine-tuned Donut that reads one page image of an insurance document and writes five fields.

What it does

Input: one page image (or a PDF page rendered to an image). Output: five fields as printed on the page, or empty: policy_number, named_insured, carrier (the insurance company), effective_date, expiration_date. It reads one page at a time. It does not combine the pages of a multi-page packet, and it does not convert dates to YYYY-MM-DD.

What it is

Base model naver-clova-ix/donut-base (MIT licence)
Size 202.1 M parameters, float32, model.safetensors 809,115,800 bytes
Start token <s_bexara>; 11 new tokens for the five fields (<s_field> and </s_field>)
Input size 1280 x 960 (set in preprocessor_config.json)
Software transformers 4.57.6, torch 2.x, pillow, sentencepiece
SHA-256 of model.safetensors FC5C90E885729C11E12A580824A3B656C30A7C77C2F0BDDB19D01B2CB0B580AE

How it was trained

  • 2 x T4 GPUs, 8 epochs = 1192 updates, 122.6 minutes.
  • 595 training samples: 17 real labelled pages (repeated 5 times) plus 510 synthetic pages built from the training insurers' layouts.
  • Split by insurance company. Validation: 3 insurers the model never saw. Two further insurers are sealed for the final test and were not used.

How good it is

On the 6 validation pages (3 unseen insurers) the model gets 8 of the 22 fields that are really on the pages (36%), and 47% when blank fields left blank are counted too:

Field Right (of those on the page)
policy_number 0 of 4
named_insured 1 of 6
carrier 1 of 5
effective_date 3 of 4
expiration_date 3 of 3

The release gate (98% on policy number and named insured) is not met. Six pages is a very small test, so the numbers are noisy.

Limits

  • Learned from 17 real pages, so it often leaves fields empty on layouts it has not seen. Names are the weakest field.
  • Only tested on scanned pages. Digital PDFs, photos and other formats have not been tested.
  • No confidence score. Do not use it for decisions without a human check.

Who may use it

  • This page is public so the work can be seen. The files are gated: only the Bexara development team may use the model. Request access with your company e-mail address. Access is approved by hand.
  • Allowed: internal development and evaluation. Not allowed: production or customer-facing use, commercial use, sharing or re-uploading outside the team. Full terms are in the LICENSE file (draft, awaiting legal review).
  • The base model (naver-clova-ix/donut-base) is MIT licensed. Its licence continues to apply to the base model.
  • Trained on anonymized insurance documents. Treat the model as confidential.

Run it

pip install torch "transformers==4.57.6" pillow sentencepiece pypdfium2 huggingface_hub
hf download gokulSholas/Bexara-COI --local-dir Bexara-COI
python Bexara-COI/donut_v1_run.py --model Bexara-COI scan.pdf --out result.json
Downloads last month
17
Safetensors
Model size
0.2B params
Tensor type
I64
ยท
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for gokulSholas/Bexara-COI

Finetuned
(490)
this model