Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'PdfPipelineOptions' object has no attribute 'backend #766

Open
raghvender-1205 opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@raghvender-1205
Copy link

Bug

I am getting

AttributeError: 'PdfPipelineOptions' object has no attribute 'backend

when I am trying to run the demo from https://ds4sd.github.io/docling/usage/#control-pdf-table-extraction-options

I am attaching a screenshot of the error

Image

Steps to reproduce

To reproduce the error. Just try running this code below

from docling.datamodel.base_models import InputFormat
from docling.datamodel.pipeline_options import PdfPipelineOptions, TableFormerMode
from docling.document_converter import DocumentConverter
from docling_core.types.doc import TableItem

file = "<your_pdf_file.pdf>"

pipeline_options = PdfPipelineOptions()
pipeline_options.do_table_structure = True
pipeline_options.table_structure_options.do_cell_matching = True
pipeline_options.table_structure_options.mode = TableFormerMode.ACCURATE

doc_converter = DocumentConverter(
    allowed_formats={
        InputFormat.PDF,
        InputFormat.IMAGE
    },
    format_options={
        InputFormat.PDF: PdfPipelineOptions(pipeline_options=pipeline_options)
    }
)
result = doc_converter.convert(file)
print(result.document.export_to_markdown())

Docling version

Docling version: 2.15.1
Docling Core version: 2.14.0
Docling IBM Models version: 3.1.2
Docling Parse version: 3.0.0

Python version

Python 3.11.10

@raghvender-1205 raghvender-1205 added the bug Something isn't working label Jan 17, 2025
@cau-git cau-git self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants