Add M1: OCR hub import, WITSML, labels T1-T3, T4 questions, trial raters, draft protocol

- OCR: match the colleague's full-set Dataset Hub export to the DDRs by content
  (3,059/3,066 pages) and QC it against the HTML (CER 2.40%, exact 0.9181).
- WITSML parser and formation tops: 21 DDR wellbores with time logs, 1,384
  reports; WITSML 15/9-F-15 S is DDR 15/9-F-15.
- Deterministic labels T1-T3 (configs/labels.yaml), 1,662 T4 questions with SQL,
  pandas and raw-XML answers in full agreement.
- Trial label validation by three blind LLM raters (not an author or expert audit)
  and rater agreement script; draft protocol_v1 (not locked): split by well.
- Literature notes and BibTeX; docs, report and run_m1.sh synchronised.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 08:34:35 +00:00
parent a3c175638f
commit 17916650a5
37 changed files with 11098 additions and 415 deletions

13
configs/ocr_hub.yaml Normal file
View File

@@ -0,0 +1,13 @@
# 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)