mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix hooks
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
88e7a5a17c
commit
57a34b6936
@ -98,7 +98,7 @@ def verify_tables(doc_pred: DsDocument, doc_true: DsDocument):
|
|||||||
|
|
||||||
print("true: ", true_item.data[i][j])
|
print("true: ", true_item.data[i][j])
|
||||||
print("pred: ", pred_item.data[i][j])
|
print("pred: ", pred_item.data[i][j])
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
true_item.data[i][j].text == pred_item.data[i][j].text
|
true_item.data[i][j].text == pred_item.data[i][j].text
|
||||||
), "table-cell does not have the same text"
|
), "table-cell does not have the same text"
|
||||||
@ -107,7 +107,6 @@ def verify_tables(doc_pred: DsDocument, doc_true: DsDocument):
|
|||||||
true_item.data[i][j].type == pred_item.data[i][j].type
|
true_item.data[i][j].type == pred_item.data[i][j].type
|
||||||
), "table-cell does not have the same type"
|
), "table-cell does not have the same type"
|
||||||
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user