feat(tables): infer columns from horizontal-rule text anchors (#171)

* feat(tables): infer columns from horizontal-rule text anchors

* fix(tables): scope sparse-rule vertical evidence

* fix(tables): validate sparse-rule evidence by content

* fix(tables): preserve independent line-table regions

* fix(tables): isolate sparse-rule regions
This commit is contained in:
Abimael Martell
2026-07-16 01:58:21 -07:00
committed by GitHub
parent 4c71feb2f1
commit a0a6a445bf
3 changed files with 1188 additions and 1 deletions
+1 -1
View File
@@ -1174,7 +1174,7 @@ pub fn detect_vector_grid_in_region_mem(
}
let line_tables =
tables::detect_tables_from_lines(&items_in_region, &lines_in_region, page_1idx);
tables::detect_vector_grid_tables_from_lines(&items_in_region, &lines_in_region, page_1idx);
for table in line_tables {
if let Some(result) = vector_grid_result_from_table(
&table,
File diff suppressed because it is too large Load Diff
+1
View File
@@ -14,6 +14,7 @@ pub mod structured;
pub use detect_heuristic::detect_tables;
pub(crate) use detect_heuristic::is_table_of_contents;
pub use detect_lines::detect_tables_from_lines;
pub(crate) use detect_lines::detect_vector_grid_tables_from_lines;
pub(crate) use detect_rects::cluster_rects;
pub use detect_rects::{detect_chart_regions, detect_tables_from_rects, RectHintRegion};
pub use detect_struct::detect_tables_from_struct_tree;