# OCR of the Volve PDF pages run outside this repository (chandra, by a colleague) and exported from the internal # Dataset Hub as COCO (one PNG per distinct page image + one annotations json). Download it into `dir` with the # dataset-hub CLI; the hub URL, dataset id and API key live only in .env (see README). Read by volve_dia/ocr_hub.py. dir: data/ocr_hub prefilter: 30 # images re-scored by token F1 after the hashed TF-IDF cosine top_k: 8 # text candidates per page passed to the image stage thumb_dpi: 50 # PDF page rendered at 50 DPI ... thumb_shrink: 2 # ... and the 200-DPI hub PNG shrunk by 2**2, so both are about 414 x 585 px min_corr: 0.9 # grey-level correlation a page needs with its best candidate image to be matched tie_eps: 0.01 # candidates within this of the best correlation are ties; the highest text F1 among them wins fallback_top_k: 8 # a DDR page with no text candidate >= min_corr: best images by coarse correlation, re-scored min_text_f1: 0.7 # a page with at least f1_min_tokens tokens in its text layer also needs this text F1 ... f1_min_tokens: 50 # ... (shorter pages: footer-only second pages, where F1 over a few tokens says little)