mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
updated the error messages
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
85304caee5
commit
4bd5deb57d
@ -48,7 +48,7 @@ def verify_maintext(doc_pred: DsDocument, doc_true: DsDocument):
|
|||||||
|
|
||||||
assert len(doc_true.main_text) == len(
|
assert len(doc_true.main_text) == len(
|
||||||
doc_pred.main_text
|
doc_pred.main_text
|
||||||
), "document has different length of main-text than expected."
|
), f"document has different length of main-text than expected. {len(doc_true.main_text)}!={len(doc_pred.main_text)}"
|
||||||
|
|
||||||
for l, true_item in enumerate(doc_true.main_text):
|
for l, true_item in enumerate(doc_true.main_text):
|
||||||
if isinstance(true_item, BaseText):
|
if isinstance(true_item, BaseText):
|
||||||
|
Loading…
Reference in New Issue
Block a user