code wiki / _hdl_build / nx_ocr_recall.nx

nx_ocr_recall.nx

buildroot/runtime/_hdl_build/nx_ocr_recall.nx

1976 B38 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic ocr
docsdependenciesstructsconstsfunctions

about

nx_ocr_recall.nx -- CLI for the sovereign OCR-recall scorer (math in nx_ocr_recall_lib, so the gate tests the exact code this CLI runs). How much of what a reader can read in the ORACLE render survives in OURS? usage: nx_ocr_recall <truth_ocr.txt> <ours_ocr.txt> (both = OCR text of the same page's two renders, read by the SAME neutral instrument). Prints RECALL/PRECISION/F1, integer permille. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_ocr_recall_lib.nx nx_ocr_recall.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_ocr_recall_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rc_w sys_write sys_exit sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ocr_recall_score sys_mmap ↻ orl_norm orl_tok orl_eq rc_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

none

functions

10func rc_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
15func rc_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
17func main(argc: i64, argv: *i64) -> i64