add files

This commit is contained in:
김경종
2026-04-30 17:05:19 +09:00
parent f3e01b5a8c
commit 7e985ae94a
135 changed files with 41205 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# Step 1: paragraph-stitching
## Read First
- /AGENTS.md
- /PLAN.md
- /PROGRESS.md
- /docs/HARNESS.md
- /docs/IMPLEMENTATION_PLAN.md
- /docs/CONVERSION_POLICY.md
- /phases/4-semantic-enrichment/step0.md
## Task
Implement paragraph stitching for line-fragmented PDF text blocks.
Handle continuation lines and hyphenated line breaks while preserving likely compound words or identifiers when confidence is low.
## Sprint Contract
- Done means: paragraph stitching turns line fragments into coherent paragraph blocks with focused tests.
- Hard thresholds: hyphen joins are tested; low-confidence hyphen cases are preserved; list items and headings are not merged into paragraphs.
- Files owned: `src/pdftomd/enrichment.py`, tests, `PROGRESS.md`, phase index.
- Dependencies: Step 0 checks and normalized block model.
## Acceptance Criteria
```powershell
python scripts\validate_workspace.py
.\venv\python.exe -m pytest tests
```
## Verification
1. Run the acceptance commands.
2. Confirm Korean and English text fixtures remain stable.
3. Update `PROGRESS.md` and this phase index.
## Do Not
- Do not rely only on punctuation rules when bounding-box hints exist.
- Do not merge across tables, figures, or formulas.
- Do not modify source PDF files.