fix: require digit after Table/Figure prefix in caption detection

Caption detection was incorrectly classifying "Table of Contents" as a
caption because it starts with "Table ". Now "Table" and "Figure"
prefixes require a digit, parenthesis, or hash after them — matching
actual captions like "Table 1", "Figure 3.2" but not titles.

Also removes debug logging left from previous iteration.

Benchmark improvement: MHS 0.52→0.54, overall 0.757→0.761.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-04-04 01:13:17 -07:00
co-authored by Claude Opus 4.6
parent 103995c200
commit b25a122655
2 changed files with 31 additions and 11 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
8 4 Z E L L / L U R I E R E A L E S T A T E C E N T E R
**Table I: Cap rate correlations**
## Table I: Cap rate correlations
## Cap Rate Correlation With:*
@@ -38,7 +38,7 @@ R E V I E W 8 5
1982 1986 1990 1994 1998 2002 2006
**Table II: Correlationsofspreadsbypropertytype**
## Table II: Correlationsofspreadsbypropertytype
## Correlation of Cap Rate Spreads Over Treasury