Exposed "force_backend_text" as pipeline parameter

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak
2025-01-16 14:23:59 +01:00
parent 0dc3ac43b1
commit 9901729d8c
3 changed files with 20 additions and 14 deletions

View File

@@ -21,6 +21,9 @@ sources = [
pipeline_options = PdfPipelineOptions()
pipeline_options.generate_page_images = True
pipeline_options.force_backend_text = (
False # If True, text from backend will be used instead of generated text
)
pipeline_options.artifacts_path = "model_artifacts"
from docling_core.types.doc import DocItemLabel, ImageRefMode