Skip to content

Support newer semchunk #268

Open
Open
@cfhammill

Description

@cfhammill

Semchunk is now on version 3.2.1, as far as I can tell, to support it we'd merely need to change

https://github.com/docling-project/docling-core/blob/main/docling_core/transforms/chunker/hybrid_chunker.py#L227

- segments = sem_chunker.chunk(text)
+ segments = sem_chunker(text)

and reflect the version bump in pyproject.toml

I've experimentally done this for myself and it appears to work.

Happy to PR if this upgrade is desirable.

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