updated the error messages

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar 2024-08-29 16:20:15 +02:00
parent 85304caee5
commit 4bd5deb57d

View File

@ -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):