From 12da98e47799ec63ea1cbc7155e75e807bd9e582 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Thu, 24 Sep 2020 10:16:52 +0200 Subject: [PATCH] getLogger per method --- qurator/dinglehopper/ocrd_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/dinglehopper/ocrd_cli.py b/qurator/dinglehopper/ocrd_cli.py index 7b9a0a0..f121a7d 100644 --- a/qurator/dinglehopper/ocrd_cli.py +++ b/qurator/dinglehopper/ocrd_cli.py @@ -10,8 +10,6 @@ from pkg_resources import resource_string from qurator.dinglehopper.cli import process as cli_process from qurator.dinglehopper.edit_distance import levenshtein_matrix_cache_clear -log = getLogger('processor.OcrdDinglehopperEvaluate') - OCRD_TOOL = json.loads(resource_string(__name__, 'ocrd-tool.json').decode('utf8')) @@ -31,6 +29,8 @@ class OcrdDinglehopperEvaluate(Processor): assert_file_grp_cardinality(self.input_file_grp, 2, 'GT and OCR') assert_file_grp_cardinality(self.output_file_grp, 1) + log = getLogger('processor.OcrdDinglehopperEvaluate') + metrics = self.parameter['metrics'] gt_grp, ocr_grp = self.input_file_grp.split(',') for n, page_id in enumerate(self.workspace.mets.physical_pages):