Commit Graph
70 Commits
Author SHA1 Message Date
iamdoubz 725e93c242 Make phase0/extract.py a thin wrapper around the package 2026-11-05 16:08:30 -06:00
iamdoubz 6b0ecbbe33 Move extraction into the package with an extract_image entry point 2026-11-05 16:08:30 -06:00
iamdoubz a3a87d1b74 Move the grid row finder into the package 2026-11-05 16:08:29 -06:00
iamdoubz 42f042eb95 Add Phase 1 database schema 2026-11-05 16:08:29 -06:00
iamdoubz 54d3cdd704 Add SQLite access and numbered migrations 2026-11-05 16:08:28 -06:00
iamdoubz 38a6d9e1d7 Add settings from environment and .env 2026-11-05 16:08:28 -06:00
iamdoubz a782770e57 Add parentcalendar package 2026-11-05 16:08:28 -06:00
iamdoubz 8f76a847e8 Pin server dependencies for Phase 1 2026-11-05 16:08:27 -06:00
iamdoubz 94729ae871 Ignore build output, data, .env and node_modules 2026-11-05 16:08:27 -06:00
iamdoubz 1f15910422 Add source ignore_labels and EXTRACT_IGNORE to spec 2026-11-05 14:59:24 -06:00
iamdoubz 3b0fb016ed Add EXTRACT_IGNORE list for labels that aren't food or events
Grade ranges like K-8 are always dropped; other labels (such as BHS) are now listed in EXTRACT_IGNORE instead of being built in. Matches whole entries in any case, in menu items and event titles.
2026-11-05 14:59:24 -06:00
iamdoubz d781d3d0ea Update spec with local model, week-row reading and Phase 0 results 2026-11-05 14:50:26 -06:00
iamdoubz 2347c2810d Add Phase 0 scoring script
Scores a run against the golden set: no-edit rate, recall, flagged errors, per-field accuracy, and menu days.
2026-11-05 14:50:26 -06:00
iamdoubz 2c449f0ac4 Add Phase 0 extraction script
Reads golden pages with a local Ollama model (default nemotron-3.5-bolt:e4b) or Claude. Grid pages are read one week row at a time and dated in code; EXTRACT_DOUBLE_READ=1 reads twice and flags disagreements.
2026-11-05 14:50:26 -06:00
iamdoubz f3eb67849c Add week-row finder for calendar and menu grids
Deskews photos, finds the grid's horizontal lines, skips banners and long arrows, and crops the weekday headings so each row can be read on its own.
2026-11-05 14:50:25 -06:00
iamdoubz 2dd2cdd33e Pin Phase 0 dependencies: anthropic and Pillow 2026-11-05 14:50:25 -06:00
iamdoubz 6754c4378f Ignore Python cache and virtual environment folders 2026-11-05 14:50:24 -06:00
iamdoubz 3e03f4c4ff Ignore private calendar scans 2026-11-05 13:07:40 -06:00
iamdoubz 49e008f4db Add MIT license 2026-11-05 13:06:52 -06:00
iamdoubz 975854e74e Add product and technical spec 2026-11-05 12:40:38 -06:00