Skip to content

Commit

Permalink
chore: refactor package files for types and chunkers
Browse files Browse the repository at this point in the history
  • Loading branch information
ceberam committed Sep 27, 2024
1 parent 17af1fc commit 6c22aaf
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
12 changes: 4 additions & 8 deletions docling_core/transforms/chunker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@

"""Define the chunker types."""

from docling_core.transforms.chunker.base import ( # noqa
BaseChunker,
Chunk,
ChunkWithMetadata,
)
from docling_core.transforms.chunker.hierarchical_chunker import ( # noqa
HierarchicalChunker,
)
from docling_core.transforms.chunker.base import BaseChunker, Chunk, ChunkWithMetadata
from docling_core.transforms.chunker.hierarchical_chunker import HierarchicalChunker

__all__ = ["BaseChunker", "Chunk", "ChunkWithMetadata", "HierarchicalChunker"]
35 changes: 26 additions & 9 deletions docling_core/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,38 @@

"""Define the main types."""

from docling_core.types.doc.base import BoundingBox # noqa
from docling_core.types.doc.base import Table # noqa
from docling_core.types.doc.base import TableCell # noqa
from docling_core.types.doc.base import ( # noqa
from docling_core.types.doc.base import (
BaseCell,
BaseText,
BoundingBox,
PageDimensions,
PageReference,
Prov,
Ref,
Table,
TableCell,
)
from docling_core.types.doc.document import ( # noqa
from docling_core.types.doc.document import (
CCSDocumentDescription as DocumentDescription,
)
from docling_core.types.doc.document import CCSFileInfoObject as FileInfoObject # noqa
from docling_core.types.doc.document import ExportedCCSDocument as Document # noqa
from docling_core.types.gen.generic import Generic # noqa
from docling_core.types.rec.record import Record # noqa
from docling_core.types.doc.document import CCSFileInfoObject as FileInfoObject
from docling_core.types.doc.document import ExportedCCSDocument as Document
from docling_core.types.gen.generic import Generic
from docling_core.types.rec.record import Record

__all__ = [
"BaseCell",
"BaseText",
"BoundingBox",
"Document",
"DocumentDescription",
"FileInfoObject",
"Generic",
"PageDimensions",
"PageReference",
"Prov",
"Record",
"Ref",
"Table",
"TableCell",
]
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c22aaf

Please sign in to comment.