mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 12:34:22 +00:00
added TableFormerMode.ACCURATE as default in cli
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
9e54a74410
commit
f4fc6cfd4a
@ -24,6 +24,7 @@ from docling.datamodel.pipeline_options import (
|
||||
PdfPipelineOptions,
|
||||
TesseractCliOcrOptions,
|
||||
TesseractOcrOptions,
|
||||
TableFormerMode,
|
||||
)
|
||||
from docling.document_converter import DocumentConverter, FormatOption, PdfFormatOption
|
||||
|
||||
@ -225,6 +226,7 @@ def convert(
|
||||
do_table_structure=True,
|
||||
)
|
||||
pipeline_options.table_structure_options.do_cell_matching = True # do_cell_matching
|
||||
pipeline_options.table_structure_options.mode = TableFormerMode.ACCURATE
|
||||
|
||||
format_options: Dict[InputFormat, FormatOption] = {
|
||||
InputFormat.PDF: PdfFormatOption(
|
||||
|
Loading…
Reference in New Issue
Block a user