From 6ad9df3e6b3c40e98d361635e7f6cc7d0001a3bf Mon Sep 17 00:00:00 2001 From: Christoph Auer Date: Wed, 9 Jul 2025 14:01:14 +0200 Subject: [PATCH] Ensure conversion status is checked on table eval Signed-off-by: Christoph Auer --- docling_eval/evaluators/table_evaluator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docling_eval/evaluators/table_evaluator.py b/docling_eval/evaluators/table_evaluator.py index 3082b2cc..f2c19bbc 100644 --- a/docling_eval/evaluators/table_evaluator.py +++ b/docling_eval/evaluators/table_evaluator.py @@ -163,6 +163,14 @@ def __call__( ): data_record = DatasetRecordWithPrediction.model_validate(data) doc_id = data_record.doc_id + + if data_record.status not in self._accepted_status: + _log.error( + "Skipping record without successfull conversion status: %s", doc_id + ) + rejected_samples[EvaluationRejectionType.INVALID_CONVERSION_STATUS] += 1 + continue + gt_doc = data_record.ground_truth_doc pred_doc = self._get_pred_doc(data_record) if not pred_doc: