Filimoa / open-parse

Improved file parsing for LLM’s
https://filimoa.github.io/open-parse/
MIT License
2.34k stars 89 forks source link

NameError: name 'display' is not defined #3

Closed Noexpert closed 5 months ago

Noexpert commented 5 months ago

Firstly, thanks for this very promising project. I tried experimenting to extract a table from a pdf.

When running the example code on my pdf I get the following error:

>>> for node in parsed_basic_doc.nodes:
...     display(node)
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'display' is not defined

Is this wrong syntax, or perhaps some dependencies are missing? Both pdfminer.six and PyMuPDF are installed.

Thanks

Filimoa commented 5 months ago

Sorry, that was meant to work inside a jupyter notebook! Correct code for regular python is.

for node in parsed_basic_doc.nodes:
    print(node)

README has been updated!