Downloads · 30 days
17
9% of all-time downloads
bugsiesegal/form-field-labeling-florence
form-field-labeling-florence is a machine learning model from bugsiesegal. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
Structure-aware labeling adapter for the Formeze PDF pipeline. For each detected box it generates one string carrying the verbatim printed caption, whose information the box holds, and the choice group it belongs to:
Downloads · 30 days
17
9% of all-time downloads
All-time downloads
194
Public
Parameters
232M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1 GB · 99%
From the Hugging Face model README
Structure-aware labeling adapter for the Formeze PDF pipeline. For each detected box it generates one string carrying the verbatim printed caption, whose information the box holds, and the choice group it belongs to:
<caption> | <SUBJECT> [| e:<entity>] [| g:<group question>] [| one]
e.g. Name | OTHER_PERSON | e:Emergency Contact,
Married | SELF | g:Marital status | one. The serving pipeline parses it
(formfieldai/structured_label.py); legacy bare captions still parse.
SUBJECT is one of SELF, SPOUSE, DEPENDENT, PARENT_GUARDIAN, CO_APPLICANT,
OTHER_PERSON, EMPLOYER, ORGANIZATION, PREPARER, OFFICE_USE, NONE.
microsoft/Florence-2-base @ 5ca5edf5bd017b9919c05d08aebef5e4c7ac3bac<REGION_TO_DESCRIPTION> + region tokens + k=12 nearest OCR tokens
(unchanged serving contract); decode budget 96 new tokensbugsiesegal/form-fields-for-layout-labeled-pages @ b2d482e0…
(224,481 targets on 7,926 pages; verbatim captions, subjects, entities,
choice groups), template-grouped train split, 2 epochs (178,429 samples)Against the structured (verbatim-caption) references it was trained toward:
| metric | struct-v1 | previous adapter |
|---|---|---|
| caption semantic agreement on matched boxes | 0.852 | 0.598 |
| caption exact agreement on matched boxes | 0.743 | 0.371 |
| end-to-end (found and correctly captioned) | 0.733 | 0.514 |
| subject accuracy | 0.661 | — |
| choice-group pair F1 / exclusive accuracy | 0.62 / 0.80 | — |
Against the dataset's original label strings (the release benchmark's references): matched semantic accuracy 0.557 vs 0.605 and end-to-end 0.479 vs 0.520 — the two reference sets disagree on 62.5% of fields, mostly in wording. At the level of field meaning (both references and predictions mapped to value concepts by the Formeze label canonicalizer), on boxes a personal profile can fill: 0.730 vs 0.717 (original references) and 0.885 vs 0.773 (structured references).
The immutable test-split benchmark has not been run for this adapter.
Review-aid use only: labels are proposals requiring explicit user approval;
no calibrated label confidence exists. See the Formeze model card and
model-manifest.json for the confidence contract and release gating.