Skip to content

Investigate why DoclingDocument.load_from_doctags requires image for bbox extraction #435

@cau-git

Description

@cau-git

There are references in the code such as this: https://github.com/docling-project/docling-core/blob/main/docling_core/types/doc/document.py#L5779

Where the extract_bounding_box method is called only if image is not None, which appears to make no sense, since it works without that constraint in other call sites.

E.g. when parsing doctags that include list items, the list_item provenance is not populated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions