Initial commit

This commit is contained in:
Christoph Auer
2024-07-15 09:42:42 +02:00
commit e2d996753b
38 changed files with 8767 additions and 0 deletions

11
examples/minimal.py Normal file
View File

@@ -0,0 +1,11 @@
from docling.datamodel.document import DocumentConversionInput
from docling.document_converter import DocumentConverter
artifacts_path = DocumentConverter.download_models_hf()
doc_converter = DocumentConverter(artifacts_path=artifacts_path)
input = DocumentConversionInput.from_paths(["factsheet.pdf"])
converted_docs = doc_converter.convert(input)
for d in converted_docs:
print(d.render_as_dict())