mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
chore: Add more logs in LayoutModel
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
This commit is contained in:
@@ -188,6 +188,11 @@ class LayoutModel(BasePageModel):
|
||||
|
||||
clusters = []
|
||||
for ix, pred_item in enumerate(page_predictions):
|
||||
#################################################################################
|
||||
# Debug: Print the un-processed clusters
|
||||
#
|
||||
print(f"{ix}: Pred item: {pred_item}")
|
||||
#################################################################################
|
||||
label = DocItemLabel(
|
||||
pred_item["label"].lower().replace(" ", "_").replace("-", "_")
|
||||
) # Temporary, until docling-ibm-model uses docling-core types
|
||||
|
||||
Reference in New Issue
Block a user