Skip to content

Commit 9b6df83

Browse files
authored
fix: fix empty prediction handling in markdown evaluator (#177)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
1 parent 5084a4d commit 9b6df83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docling_eval/evaluators/markdown_text_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __call__(
156156
true_md = self._docling_document_to_md(true_doc)
157157
pred_md = self._get_pred_md(data_record)
158158

159-
if pred_md is None:
159+
if not pred_md:
160160
_log.error("There is no markdown prediction for doc_id=%s", doc_id)
161161
rejected_samples[EvaluationRejectionType.MISSING_PREDICTION] += 1
162162
continue

0 commit comments

Comments
 (0)