From 8d810fd45f08c93e084548b93cb748a5f08d5df7 Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Wed, 5 Feb 2025 18:24:22 +0100 Subject: [PATCH] update docs Signed-off-by: Michele Dolfi --- docs/usage.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index b7fb4c94..ff086e2f 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -35,14 +35,10 @@ from docling.datamodel.base_models import InputFormat from docling.datamodel.pipeline_options import EasyOcrOptions, PdfPipelineOptions from docling.document_converter import DocumentConverter, PdfFormatOption +# dowload all models with `docling-tools models download` artifacts_path = "/local/path/to/artifacts" pipeline_options = PdfPipelineOptions(artifacts_path=artifacts_path) -# if you are using EasyOcr -pipeline_options.ocr_options = EasyOcrOptions( - download_enabled=False, - model_storage_directory=str(artifacts_path / "EasyOcr") -) doc_converter = DocumentConverter( format_options={ InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options) @@ -62,6 +58,9 @@ Downloading easyocr models... All models downloaded in the directory $HOME/.cache/docling/models. ``` +Alternatively, the download of all models can be triggered also with `docling.utils.models_downloader.download_all()`. + + #### Adjust pipeline features The example file [custom_convert.py](./examples/custom_convert.py) contains multiple ways