AttributeError: 'DocChunk' object has no attribute 'from_data' #402
Answered
by
vagenas
AdityaMannu1709
asked this question in
Q&A
-
Was running example notebook "advanced_chunking_with_merging.ipynb" but encountered couple of errors......
from docling_core.transforms.chunker import (
BaseChunk,
BaseChunker,
DocChunk,
DocMeta,
HierarchicalChunker,
) Fixed by adding below import line - from docling_core.transforms.chunker.hierarchical_chunker import DocChunk
new_chunk = DocChunk.from_data(text=window_text, meta=meta, delim=self.delim) ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\pydantic\_internal\_model_construction.py:320, in ModelMetaclass.__getattr__(self, item)
318 if private_attributes and item in private_attributes:
319 return private_attributes[item]
--> 320 raise AttributeError(item) |
Beta Was this translation helpful? Give feedback.
Answered by
vagenas
Nov 21, 2024
Replies: 1 comment
-
@AdityaMannu1709 the example "advanced_chunking_with_merging.ipynb" you are referring to is not part of the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AdityaMannu1709
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@AdityaMannu1709 the example "advanced_chunking_with_merging.ipynb" you are referring to is not part of the
main
branch.It is still in development and undergoing changes in a separate branch, so it would not be advised to build around it yet.
That said, we expect to have a stable version of these capabilities soon, so stay tuned!