reformatted code

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar 2025-04-29 10:38:58 +02:00
parent 2f66248605
commit eee4afe8cf

View File

@ -344,7 +344,7 @@ class ReadingOrderModel:
new_item.text += f" {merged_elem.text}" new_item.text += f" {merged_elem.text}"
new_item.orig += f" {merged_elem.text}" # TODO: This is incomplete, we don't have the `orig` field of the merged element. new_item.orig += f" {merged_elem.text}" # TODO: This is incomplete, we don't have the `orig` field of the merged element.
new_item.prov.append(prov) new_item.prov.append(prov)
def __call__(self, conv_res: ConversionResult) -> DoclingDocument: def __call__(self, conv_res: ConversionResult) -> DoclingDocument:
with TimeRecorder(conv_res, "reading_order", scope=ProfilingScope.DOCUMENT): with TimeRecorder(conv_res, "reading_order", scope=ProfilingScope.DOCUMENT):
page_elements = self._assembled_to_readingorder_elements(conv_res) page_elements = self._assembled_to_readingorder_elements(conv_res)