Skip to content

Commit

Permalink
comment out example
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm committed Nov 9, 2024
1 parent c6ae148 commit 1a56927
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/examples/custom_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ def main():

# Docling Parse with EasyOCR (CPU only)
# ----------------------
pipeline_options = PdfPipelineOptions()
pipeline_options.do_ocr = True
pipeline_options.ocr_options.use_gpu = False
pipeline_options.do_table_structure = True
pipeline_options.table_structure_options.do_cell_matching = True
# pipeline_options = PdfPipelineOptions()
# pipeline_options.do_ocr = True
# pipeline_options.ocr_options.use_gpu = False # <-- set this.
# pipeline_options.do_table_structure = True
# pipeline_options.table_structure_options.do_cell_matching = True

doc_converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
)
# doc_converter = DocumentConverter(
# format_options={
# InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
# }
# )

# Docling Parse with Tesseract
# ----------------------
Expand Down

0 comments on commit 1a56927

Please sign in to comment.