Skip to main content

Module table_structure_decode

Module table_structure_decode 

Source
Expand description

Table Structure Decoding Processor

This module provides postprocessing for table structure recognition models. It decodes structure token logits and extracts bounding boxes for table cells.

Structs§

CellGridInfo
Grid position and span information for a table cell.
TableStructureDecode
Table structure decoder that converts model outputs to HTML tokens and bboxes.
TableStructureDecodeOutput
Output from table structure decoding.

Functions§

parse_cell_grid_info
Parses structure tokens to extract grid position and span info for each cell.
wrap_table_html
Wraps table structure tokens with HTML document tags.
wrap_table_html_with_content
Wraps table structure tokens into an HTML string with cell content filled in.