Commit 4bd0999
committed
diag(uyap): accurate money detection in segment_shape + document-wide money/label position maps
2026/23 re-extract showed two 'İhale Bedeli' labels (idx 10,15) but NO money in the window and bounded_following_money_count=0 -> value is NOT adjacent to either label. The old _segment_kind hid money via _bounded_region(seg,fold,0) (cut at the first boundary label), so a 'İhale Bedeli VALUE' or 'VALUE İhale Bedeli' segment mis-showed as plain label. Fixed to scan the whole segment. Added privacy-safe document-wide position maps to the auction_price neighborhood: document_segment_count, label_segment_indexes, money_segment_indexes (segment INDEXES only; never values/text). This pinpoints where the İhale Bedeli value actually sits (columnar value-block, value-before-label, or a different doc) so the extraction can be fixed precisely without guessing. No extraction behavior change; +3 test assertions; fix11 green.1 parent 001a10e commit 4bd0999
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
499 | 505 | | |
500 | 506 | | |
501 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
502 | 511 | | |
503 | 512 | | |
504 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
0 commit comments