docs: add model card for MudraForge/law2code-parser-stages
Browse files
README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: pytorch
|
| 3 |
+
tags:
|
| 4 |
+
- legal-nlp
|
| 5 |
+
- catala
|
| 6 |
+
- neuro-symbolic
|
| 7 |
+
- continual-learning
|
| 8 |
+
- statutory-ast
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# MudraForge `law2code` Downstream Parser Stages (Stage 1, 1.5, 2 & 2B)
|
| 13 |
+
|
| 14 |
+
Canonical downstream neural stages for the **MudraForge `law2code`** neuro-symbolic statutory compiler (`v6.1.0-prod` / `MF-SPEC-S1-V6.1.0`):
|
| 15 |
+
|
| 16 |
+
1. **Stage 1 (`stage1_non_operands_tree_cl_v6_full.pt`)** — 37-tag Atomic Non-Operand Hierarchical Tree Parser (99.17% full-corpus F1, 91.97% 5-fold OOF F1).
|
| 17 |
+
2. **Stage 1.5 (`stage1_5_operands_catala_tree_v2_full.pt` + `stage1_5_leaf_prototypes_v2.json`)** — Catala Operand Specialist & Conformal Entropy Gate (`H >= 0.50`) + Prototype Memory Bank (`teach-leaf` continual learning).
|
| 18 |
+
3. **Stage 2 (`stage2_clauses_v2_full.pt`)** — Geometric Clause Scope Specialist (`COND`, `EXCEPTION`, `RULE_EFFECT`, `INLINE_DEF`; 97.05% IoU50 F1).
|
| 19 |
+
4. **Stage 2B (`stage2_refiner_noppo_v2_full.pt`)** — Clause Boundary Pointer Refiner (+7.20 exact F1 gain to 94.93%).
|
| 20 |
+
|
| 21 |
+
Deterministic **Stage 3 Reflexion Critic & Catala/AST Emitter** runs symbolically over these outputs with `isAuthorizedToDisburse: false`.
|