Spaces:
Sleeping
Sleeping
Commit History
-
Milestone 0.3.0: coder-voiced README, benchmark button, NER feature flag, CMS fetcherβ
README - Opening rewritten in coder vocabulary (suspect list / capture / MEAT / RADV risk / hierarchy trumping). Targets the S4 30-second recruiter skim. Benchmark endpoint + UI - POST /api/benchmark re-runs every gallery item live and returns min/median/p95/max/mean ms + per-case timings. Surfaces the S2 target (8000 ms p95 on CPU free tier) explicitly. - MetricsTab now has a "Run gallery benchmark" button with a red/green p95 card and a collapsible per-case breakdown. NER backend feature flag - New TransformersNER wrapper around the HF token-classification pipeline with lazy import + label normalization onto SpanType. - default_ner() reads HCC_MEAT_NER_BACKEND (dictionary|transformers) and HCC_MEAT_NER_MODEL (default blaze999/Medical-NER). - test_ner_backend_selection.py asserts selector behavior without importing transformers when the env var is unset β keeps CI lean. CMS fetcher - scripts/fetch_cms_hcc_v28.py now has two subcommands: inspect β download the CMS β¦e43bca6 -
Review pass: fix imports, broaden NER vocab, segmenter inline headersβ
- Segmenter now accepts inline content after a header (e.g., "HPI: 67yo..."). The previous regex required headers to be on their own line, which broke several fixture notes. - Expand DictionaryNER vocabulary so the Week-1 baseline recognizes "DM2", "diabetic polyneuropathy", "CKD stage 4 (severe)", "hemodialysis", "end stage renal disease", etc. Regex still word-boundary-bounded. - Add alias entries in ExactMatchLinker for hemodialysis, renal dialysis, and "dependence on renal dialysis" (all β Z99.2). Makes the dialysis-trumping fixture resolvable without the embedding linker. - Move fixture schema + loader from tests/fixtures/schema.py to eval_harness/fixtures.py (canonical location). Tests re-export from the old path for backwards compatibility. Eval CLI no longer depends on tests/ being on sys.path. - Add root conftest.py so pytest resolves app/eval_harness/tests regardless of invocation cwd. - Replace the `raise typer.Exit(1)` stub in scripts/fetch_cms_hcc_v28.pβ¦4855547 -
Initial scaffold: HCC-MEAT Coder v0.1.0β
End-to-end runnable pipeline with rule-based baselines in place of ML components, a FastAPI backend serving a React three-panel UI, and a 10-case regression suite guarding the invariants from AGENT_BRIEF.md Β§3 (faithfulness, negation/family-history filtering, hierarchy trumping, transparent risk). Deterministic components (real, tested): - E β HCC crosswalk + trumping over CMS-HCC v28 seed tables - H β over-coding (RADV) risk heuristic with named components + reasons - I β faithfulness verifier (substring guarantee + NLI hook) Baseline / swappable components: - A segmenter, B dictionary NER, C negation, D exact/alias linker, F rule-based MEAT extractor, G identity calibrator Infra: uv-driven pyproject, ruff + pytest + pre-commit, GH Actions CI for Python and UI, multi-stage Dockerfile for the HF Docker Space, typer CLIs for pipeline (`hcc-meat`) and evaluation (`hcc-meat-eval`). Reference data in data/reference/ uses PLACEHOLDER RAF weights; hydrate via scripts/fetch_cms_hcc_v28.β¦c6cfe5f