- Rewrite profiles/builtin/contract/profile.yaml following Phase 7.10 schema with match predicates, extraction tuning, and field extractors - Create tests/fixtures/profiles/contract/ directory with 5 expected outputs - Add comprehensive regression tests in tests/profiles/test_contract.rs - Profile extracts: parties, effective_date, term, governing_law, signatures Fixtures cover: NDA, employment agreement, MSA, service agreement, real estate purchase Closes: pdftract-dtpwa Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
20 lines
578 B
JSON
20 lines
578 B
JSON
{
|
|
"metadata": {
|
|
"document_type": "contract",
|
|
"document_type_confidence": 0.95,
|
|
"document_type_reasons": [
|
|
"text_contains matched 'AGREEMENT'",
|
|
"text_contains matched 'WHEREAS'",
|
|
"structural.page_count in range [2, 200]"
|
|
],
|
|
"profile_name": "contract",
|
|
"profile_version": "1.0.0",
|
|
"profile_fields": {
|
|
"parties": ["Acme Corporation", "Beta LLC"],
|
|
"effective_date": "2025-01-15",
|
|
"term": "2 years",
|
|
"governing_law": "State of Delaware",
|
|
"signatures": ["John Doe (Acme)", "Jane Smith (Beta)"]
|
|
}
|
|
}
|
|
}
|