Commit db6aac9
committed
Postprocess: caption-dedup and tail metadata section recovery
Two deterministic, generation-neutral postprocess fixes that close the last
LightOnOCR pass gap with no prompt or scrub change, so all 15 previously-passing
posters and the byte-identical primary greedy pass are untouched:
- Caption dedup: drop a caption whose body -- after a leading "Figure/Table N:"
prefix -- equals a section title, or that is cross-listed in both caption
lists. Such a caption echoes structure that already exists. Fixes posters
whose 8B emits heading/label captions that only inflate field_proportion;
a poster with genuine distinct captions has none and is untouched. Takes
4552067 field_proportion 1.58 -> 1.33, FAIL -> PASS.
- Tail-section recovery: recover dropped trailing metadata sections
References / Contact / Acknowledgements / Funding from the OCR markdown
headings, anchored on "##" structure + a generic allowlist + min body length
+ title/URL exclusion. No poster id or literal strings. Fixes 42, which
dropped its Contact section entirely.
Verified end-to-end on the live harness: 42 and 4552067 flip to PASS, AISec
stays 0.92, control 10890106 unchanged. Also confirmed by a full-20 replay of
the saved run. LightOnOCR 15/20 -> 17/20, rougeL 0.832 (still beats pdfplumber
0.819). Remaining 3 fails are genuine ceilings.1 parent 8238ddb commit db6aac9
1 file changed
Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2745 | 2745 | | |
2746 | 2746 | | |
2747 | 2747 | | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
2748 | 2773 | | |
2749 | 2774 | | |
2750 | 2775 | | |
| |||
3068 | 3093 | | |
3069 | 3094 | | |
3070 | 3095 | | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
3071 | 3100 | | |
3072 | 3101 | | |
3073 | 3102 | | |
| |||
3154 | 3183 | | |
3155 | 3184 | | |
3156 | 3185 | | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
3157 | 3229 | | |
3158 | 3230 | | |
3159 | 3231 | | |
| |||
0 commit comments