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
I think I identified a typo based on a comment and the logic of the code itself.
In "adapt_bbox" from "layout_utils.py", there are three lines at the first function indentation level: if not (cluster["type"] in [DocItemLabel.TABLE, DocItemLabel.PICTURE]):; if cluster["type"] == DocItemLabel.PICTURE: and else: ## A table
Based on the comment ## A table and the fact that there is to my understanding other classes that TABLE and PICTURES leading to a re-definition of new_bbox in the else statement when handling a cluster's class different from a table and a picture, I think the second if is meant to be an elif keyword., i.e. we would write: elif cluster["type"] == DocItemLabel.PICTURE:
Am I right ?
Thank you for this great tool by the way :)
The text was updated successfully, but these errors were encountered:
Question
I think I identified a typo based on a comment and the logic of the code itself.
In "adapt_bbox" from "layout_utils.py", there are three lines at the first function indentation level:
if not (cluster["type"] in [DocItemLabel.TABLE, DocItemLabel.PICTURE]):
;if cluster["type"] == DocItemLabel.PICTURE:
andelse: ## A table
Based on the comment
## A table
and the fact that there is to my understanding other classes that TABLE and PICTURES leading to a re-definition ofnew_bbox
in the else statement when handling a cluster's class different from a table and a picture, I think the secondif
is meant to be anelif
keyword., i.e. we would write:elif cluster["type"] == DocItemLabel.PICTURE:
Am I right ?
Thank you for this great tool by the way :)
The text was updated successfully, but these errors were encountered: