pdftract/tests/fixtures/profiles/legal_filing/docket_sheet-expected.json
jedarden 8b63217dbf feat(pdftract-260a3): implement legal_filing profile with fixtures and tests
Implements the legal_filing document profile for court filings (motions,
briefs, orders, docket entries) with:

- Profile YAML at profiles/builtin/legal_filing/profile.yaml
  - Fields: case_number, court, parties, filing_date, docket_entries
  - Match predicates for court name, case numbers, party markers
  - Extraction: xy_cut reading order, include_headers_footers=true

- 5 synthetic PDF fixtures at tests/fixtures/profiles/legal_filing/
  - federal_complaint: Federal district court complaint
  - state_motion: State superior court motion to dismiss
  - appellate_brief: Federal appellate brief
  - court_order: Federal district court order
  - docket_sheet: Docket sheet with entries

- 5 expected output JSON files with profile_fields

- Regression tests at crates/pdftract-cli/tests/test_legal_filing.rs
  - 14/14 tests pass
  - Verifies profile schema, fixture structure, match predicates

Acceptance criteria (from bead pdftract-260a3):
-  profiles/builtin/legal_filing.yaml validates
-  5+ public-domain fixtures with expected outputs
-  tests/test_legal_filing.rs passes
-  Per-field accuracy thresholds defined (integration tests pending Phase 7.10)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 21:44:49 -04:00

32 lines
1.2 KiB
JSON

{
"metadata": {
"document_type": "legal_filing",
"document_type_confidence": 0.89,
"document_type_reasons": [
"text_contains matched 'UNITED STATES DISTRICT COURT'",
"text_contains matched 'Case No.'",
"text_contains matched 'Plaintiff'",
"text_contains matched 'Defendant'",
"heading_matches matched 'DOCKET SHEET'",
"structural.page_count in range [1, 500]"
],
"profile_name": "legal_filing",
"profile_version": "1.0.0",
"profile_fields": {
"case_number": "2:24-cv-00890",
"court": "UNITED STATES DISTRICT COURT FOR THE EASTERN DISTRICT OF TEXAS",
"parties": ["PatentHolder LLC", "Infringer Corp."],
"filing_date": "2024-04-01",
"docket_entries": [
"[1] 04/01/2024 - Complaint filed by PatentHolder LLC.",
"[2] 04/05/2024 - Summons issued.",
"[3] 04/15/2024 - Waiver of service filed by Infringer Corp.",
"[4] 04/20/2024 - Defendant's Answer due.",
"[5] 04/25/2024 - Motion to extend time to answer filed.",
"[6] 04/28/2024 - Order granting extension to 05/20/2024.",
"[7] 05/18/2024 - Defendant's Answer filed.",
"[8] 06/01/2024 - Case management conference scheduled."
]
}
}
}