From f20eb3ba459f4d80eeab743c11fabab5b2241750 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 5 Dec 2019 14:58:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Refactor=20model=20path=20consta?= =?UTF-8?q?nt=20into=20a=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_recognize.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_recognize.py b/test/test_recognize.py index 0fca48f..19932f4 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -10,6 +10,7 @@ from ocrd_calamari import CalamariRecognize from .base import assets METS_KANT = assets.url_of('kant_aufklaerung_1784-page-block-line-word_glyph/data/mets.xml') +CHECKPOINT = os.path.join(os.getcwd(), 'gt4histocr-calamari/*.ckpt.json') WORKSPACE_DIR = '/tmp/test-ocrd-calamari' @@ -52,9 +53,7 @@ def test_recognize(workspace): workspace, input_file_grp="OCR-D-GT-SEG-LINE", output_file_grp="OCR-D-OCR-CALAMARI", - parameter={ - 'checkpoint': os.path.join(os.getcwd(), 'gt4histocr-calamari/*.ckpt.json') - } + parameter={'checkpoint': CHECKPOINT} ).process() workspace.save_mets()