davanstrien HF Staff commited on
Commit
8432fc6
·
verified ·
1 Parent(s): d0fc331

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +77 -0
README.md CHANGED
@@ -41,4 +41,81 @@ configs:
41
  path: data/validation-*
42
  - split: test
43
  path: data/test-*
 
 
 
 
 
 
 
 
 
 
 
 
44
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  path: data/validation-*
42
  - split: test
43
  path: data/test-*
44
+ task_categories:
45
+ - image-classification
46
+ tags:
47
+ - archives
48
+ - document-classification
49
+ - glam
50
+ - image-classification
51
+ - index-cards
52
+ - libraries
53
+ - ocr-pre-filter
54
+ license: cc-by-4.0
55
+ pretty_name: Index-card blank / content / divider
56
  ---
57
+ # Index-card blank / content / divider classifier — dataset
58
+
59
+ Cropped single **archival index cards** labelled `blank`, `content`, or `divider`, for
60
+ training a tiny CPU pre-filter that skips blank/divider cards before expensive VLM metadata
61
+ extraction in card-catalogue digitisation pipelines.
62
+
63
+ Two collections: **Boston Public Library (BPL)** FRC shelf-list cards and **National Library
64
+ of Scotland (NLS)** Advocates Library cards. Styles differ, so evaluate per collection.
65
+
66
+ ## How it was made (provenance)
67
+
68
+ AI-bootstrapped → agent-verified, no from-scratch hand labelling:
69
+
70
+ 1. **Weak signals fused** into labels:
71
+ - **NuExtract3 `card_type`** (BPL labelled sample): bibliographic→content,
72
+ shelf_divider→divider, null→blank.
73
+ - **Ink-density** with punch-hole removal (connected-component analysis) — the
74
+ cross-collection blank detector. Calibrated on the labelled sample: 100% blank recall /
75
+ 96% content recall at threshold 0.005. Used to **harvest** extra blanks from unlabelled
76
+ BPL shelf-list drawers.
77
+ - **YOLO card-detector box-count** (`NationalLibraryOfScotland/archival-index-card-detector`)
78
+ validated as an oracle: reliable on NLS (100% separation), noisy on BPL crops (31% of
79
+ blanks falsely fire) → used as a primary signal for NLS, corroborating only for BPL.
80
+ - **NLS `has_card`** + bbox: crop content cards from pages.
81
+ 2. **Agreement → auto-accept; disagreement → routed to human.**
82
+ 3. **Gold (test) split human-verified** per collection (not auto-thresholded), so it measures
83
+ generalisation rather than pipeline self-consistency.
84
+
85
+ ## Composition
86
+
87
+ | collection | label | train | val | gold | total |
88
+ |---|---|---|---|---|---|
89
+ | bpl | blank | 209 | 37 | 30 | 276 |
90
+ | bpl | content | 122 | 21 | 30 | 173 |
91
+ | bpl | divider | 32 | 6 | 0 | 38 |
92
+ | nls | content | 29 | 5 | 15 | 49 |
93
+
94
+ `label_source` records how each label was derived (`auto:nuextract+ink`, `auto:ink-density`,
95
+ `auto:has_card+box-count`); `signals` is a JSON audit of the raw per-card signal values.
96
+
97
+ ## Intended use & limitations
98
+
99
+ - **Use**: train a tiny `transformers` image classifier as a `--skip-blank` pre-filter.
100
+ - **`divider`** is captured but held out of the binary v1 model (fast-follow 3-class).
101
+ - **NLS blank gap (v1)**: NLS contributes content cards only — no clean blank *fronts* exist
102
+ in the source (NLS no-card examples are empty *pages*, a different visual domain, and the
103
+ detector rejects blank fronts). So v1 reports NLS *content* precision/recall; NLS blank
104
+ recall awaits a v2 harvest of NLS blank fronts.
105
+ - **Punch-hole/smudge**: blank cards carry a punch-hole and sometimes show-through smudges;
106
+ these are deliberately included so the model learns a small dark blob ≠ content.
107
+
108
+ ## Use this for your own collection
109
+
110
+ Point an agent at your card images; bootstrap labels from whatever weak signals you have (a
111
+ card detector, an existing VLM `card_type` field, an ink-density heuristic with punch-hole
112
+ handling); auto-accept agreements and human-correct the rest; hold out a small verified gold
113
+ set; then train a tiny classifier and add your rows tagged by `source_collection`. Full
114
+ workflow: [`data-centric-model-dev`](https://huggingface.co/small-models-for-glam).
115
+
116
+ ## Sources
117
+
118
+ - BPL FRC shelf-list cards — Internet Archive `bplfrcshelflistcards`.
119
+ - `davanstrien/bpl-shelf-list-nuextract3` (NuExtract3 weak labels).
120
+ - `NationalLibraryOfScotland/nls-index-cards-object-detection`.
121
+ - Detector: `NationalLibraryOfScotland/archival-index-card-detector`.