mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-31 14:34:40 +00:00
comment out example
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
c6ae14861f
commit
1a569275b5
@ -82,17 +82,17 @@ def main():
|
|||||||
|
|
||||||
# Docling Parse with EasyOCR (CPU only)
|
# Docling Parse with EasyOCR (CPU only)
|
||||||
# ----------------------
|
# ----------------------
|
||||||
pipeline_options = PdfPipelineOptions()
|
# pipeline_options = PdfPipelineOptions()
|
||||||
pipeline_options.do_ocr = True
|
# pipeline_options.do_ocr = True
|
||||||
pipeline_options.ocr_options.use_gpu = False
|
# pipeline_options.ocr_options.use_gpu = False # <-- set this.
|
||||||
pipeline_options.do_table_structure = True
|
# pipeline_options.do_table_structure = True
|
||||||
pipeline_options.table_structure_options.do_cell_matching = True
|
# pipeline_options.table_structure_options.do_cell_matching = True
|
||||||
|
|
||||||
doc_converter = DocumentConverter(
|
# doc_converter = DocumentConverter(
|
||||||
format_options={
|
# format_options={
|
||||||
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
|
# InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
|
||||||
}
|
# }
|
||||||
)
|
# )
|
||||||
|
|
||||||
# Docling Parse with Tesseract
|
# Docling Parse with Tesseract
|
||||||
# ----------------------
|
# ----------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user