Skip to content

Commit d5e088d

Browse files
chore: Improve logging
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
1 parent c5b1cf7 commit d5e088d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docling_eval/evaluators/markdown_text_evaluator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,11 @@ def __call__(
194194
"meteor": [],
195195
}
196196

197-
futures: list[Future] = []
198197
with ProcessPoolExecutor(max_workers=self._concurrency) as executor:
198+
futures: list[Future] = []
199+
199200
# Submit the evaluation tasks
201+
_log.info("Submitting the documents for evaluation...")
200202
for data in ds_selection:
201203
data_record = DatasetRecordWithPrediction.model_validate(data)
202204
doc_id = data_record.doc_id
@@ -238,6 +240,7 @@ def __call__(
238240
)
239241

240242
# Collect the futures
243+
_log.info("Collecting the documents for evaluations...")
241244
for i, future in tqdm(
242245
enumerate(as_completed(futures)),
243246
desc="Markdown text evaluations",

0 commit comments

Comments
 (0)