From b870054747f98b0144f1757132e66da20945dc33 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 12 Dec 2024 12:34:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20cli=5Fline=5Fdirs:=20Fix=20chara?= =?UTF-8?q?cter=20diff=20reports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dinglehopper/cli_line_dirs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dinglehopper/cli_line_dirs.py b/src/dinglehopper/cli_line_dirs.py index 03bf374..01fd585 100644 --- a/src/dinglehopper/cli_line_dirs.py +++ b/src/dinglehopper/cli_line_dirs.py @@ -81,7 +81,7 @@ def process(gt_dir, ocr_dir, report_prefix, *, metrics=True): joiner="", none="·", score_hint=score_hint(l_cer, l_n_characters), - ) + )[0] word_diff_report += gen_diff_report( gt_words, ocr_words, @@ -89,7 +89,7 @@ def process(gt_dir, ocr_dir, report_prefix, *, metrics=True): joiner=" ", none="⋯", score_hint=score_hint(l_wer, l_n_words), - ) + )[0] env = Environment( loader=FileSystemLoader(