You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/green/git/cl-langtools/test.py", line 11, in <module>
parsed_basic_doc = parser.parse(basic_doc_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/openparse/doc_parser.py", line 106, in parse
table_elems = tables.ingest(doc, table_args_obj, verbose=self._verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/openparse/tables/parse.py", line 223, in ingest
return _ingest_with_unitable(doc, parsing_args, verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/openparse/tables/parse.py", line 189, in _ingest_with_unitable
table_str = table_img_to_html(table_img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/openparse/tables/unitable/core.py", line 192, in table_img_to_html
pred_cell_lst = predict_cells(image_tensor, pred_bbox, table_image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/openparse/tables/unitable/core.py", line 160, in predict_cells
_image_to_tensor(image.crop(bbox), size=(112, 448)) for bbox in pred_bboxes
^^^^^^^^^^^^^^^^
File "/home/green/git/cl-langtools/tools/open-parse/lib64/python3.12/site-packages/PIL/Image.py", line 1237, in crop
raise ValueError(msg)
ValueError: Coordinate 'right' is less than 'left'
Given this code:
I'm getting the following error:
If it helps, my input document is this one: https://www.rbc.com/investor-relations/_assets-custom/pdf/ar_2023_e.pdf
The text was updated successfully, but these errors were encountered: