mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
chore: update Milvus on examples and references to deprecated method (#2664)
* docs(examples): update the set up of Milvus Lite Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com> * chore: remove references to deprecated save_as_document_tokens Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com> --------- Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
This commit is contained in:
committed by
GitHub
parent
ce5a099dfd
commit
54e65d9511
4
docs/examples/batch_convert.py
vendored
4
docs/examples/batch_convert.py
vendored
@@ -79,7 +79,7 @@ def export_documents(
|
||||
output_dir / f"{doc_filename}.html",
|
||||
image_mode=ImageRefMode.EMBEDDED,
|
||||
)
|
||||
conv_res.document.save_as_document_tokens(
|
||||
conv_res.document.save_as_doctags(
|
||||
output_dir / f"{doc_filename}.doctags.txt"
|
||||
)
|
||||
conv_res.document.save_as_markdown(
|
||||
@@ -98,7 +98,7 @@ def export_documents(
|
||||
|
||||
# Export Docling document format to doctags:
|
||||
with (output_dir / f"{doc_filename}.doctags.txt").open("w") as fp:
|
||||
fp.write(conv_res.document.export_to_document_tokens())
|
||||
fp.write(conv_res.document.export_to_doctags())
|
||||
|
||||
# Export Docling document format to markdown:
|
||||
with (output_dir / f"{doc_filename}.md").open("w") as fp:
|
||||
|
||||
Reference in New Issue
Block a user