feat: expose options for new features (#92)

Signed-off-by: Tiago Santana <54704492+SantanaTiago@users.noreply.github.com>
This commit is contained in:
Tiago Santana
2025-03-13 16:09:59 +00:00
committed by GitHub
parent b92c5d8899
commit ec57b528ed
3 changed files with 87 additions and 0 deletions

View File

@@ -120,6 +120,10 @@ def get_pdf_pipeline_opts( # noqa: C901
do_ocr=request.do_ocr,
ocr_options=ocr_options,
do_table_structure=request.do_table_structure,
do_code_enrichment=request.do_code_enrichment,
do_formula_enrichment=request.do_formula_enrichment,
do_picture_classification=request.do_picture_classification,
do_picture_description=request.do_picture_description,
)
pipeline_options.table_structure_options.do_cell_matching = True # do_cell_matching
pipeline_options.table_structure_options.mode = TableFormerMode(request.table_mode)