fonduer-tutorials icon indicating copy to clipboard operation
fonduer-tutorials copied to clipboard

TypeError in Parser configuration in hardware/max_storage_temp_tutorial.ipynb

Open bhatiaa1 opened this issue 4 years ago • 0 comments

Describe the bug Running the hardware/max_storage_temp_tutorial.ipynb results in an error during parser configuration step on line corpus_parser = Parser(session, structural=True, lingual=True, visual=True, pdf_path=pdf_path) %time corpus_parser.apply(doc_preprocessor, parallelism=PARALLEL)

Tried to resolve the error by changing visual=True to visual_parser=True, but then a new Type Error pops up on pdf_path.

Error Logs/Screenshots

TypeError Traceback (most recent call last) /tmp/ipykernel_120432/1896064779.py in ----> 1 corpus_parser = Parser(session, structural=True, lingual=True, visual=True, pdf_path=pdf_path) 2 get_ipython().run_line_magic('time', 'corpus_parser.apply(doc_preprocessor, parallelism=PARALLEL)')

TypeError: init() got an unexpected keyword argument 'visual'

Environment (please complete the following information):

  • OS: Ubuntu 20.04
  • PostgreSQL Version: 13.3
  • Poppler Utils Version: 0.86.1
  • Fonduer Version: 0.9.0

bhatiaa1 avatar Aug 05 '21 07:08 bhatiaa1