-
|
I’m using set_table_detection_params(table_score_threshold=0, density_min=0.04)I have very small tables that consist of just a header row plus one data row (2 rows total). These are currently not being recognized as tables.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Thank you for using What controls the minimum table size / rows?
Before scoring, ExStruct applies a hard plausibility check in
Because of this, some small 2-row tables can be rejected even if you set all thresholds to 0. Relevant parameters you can tune today
Possible improvement (backward-compatible)If your use-case requires detecting “sparse” 2-row tables (e.g., 2×2 with one empty cell), we can consider making the plausibility rule configurable (e.g., parameterizing the required non-empty-per-row/col counts) while keeping the current behavior as the default for backward compatibility. If you can share a minimal example file or a screenshot + cell range, it would help confirm which condition is causing the rejection in your layout. |
Beta Was this translation helpful? Give feedback.

I recreated and confirmed the Excel sheet you provided on the actual device I have, and I am now convinced that it is being rejected by the table detection algorithm due to the absence of left and right borders.
Currently,
exstruct's table detection algorithm is based on border patterns, so it cannot yet detect implicit tables that lack borders and are not considered tables, like the one presented this time. However, we will consider improvements to enhance the table detection algorithm's performance in the future, including the ability to recognize cases like this.