- 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
611 B
JSON
20 lines
611 B
JSON
{
|
|
"metadata": {
|
|
"document_type": "contract",
|
|
"document_type_confidence": 0.88,
|
|
"document_type_reasons": [
|
|
"text_contains matched 'Agreement'",
|
|
"text_contains matched 'BY AND BETWEEN'",
|
|
"structural.page_count in range [2, 200]"
|
|
],
|
|
"profile_name": "contract",
|
|
"profile_version": "1.0.0",
|
|
"profile_fields": {
|
|
"parties": ["Freelance Consultant", "Small Business LLC"],
|
|
"effective_date": "2025-03-01",
|
|
"term": "project completion or 6 months",
|
|
"governing_law": "State of Texas",
|
|
"signatures": ["Consultant", "Business Owner"]
|
|
}
|
|
}
|
|
}
|