From 5cf4eddaeb0f117689d3b42d00c5eac69ed62053 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Wed, 20 Nov 2019 13:05:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20dinglehopper:=20Clear=20Levenshtein?= =?UTF-8?q?=20cache=20between=20OCR-D=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/dinglehopper/ocrd_cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qurator/dinglehopper/ocrd_cli.py b/qurator/dinglehopper/ocrd_cli.py index 2a5aed5..ee44e2f 100644 --- a/qurator/dinglehopper/ocrd_cli.py +++ b/qurator/dinglehopper/ocrd_cli.py @@ -8,6 +8,7 @@ from ocrd_utils import concat_padded, getLogger from pkg_resources import resource_string from qurator.dinglehopper.cli import process as cli_process +from qurator.dinglehopper.edit_distance import _levenshtein_matrix log = getLogger('processor.OcrdDinglehopperEvaluate') @@ -62,6 +63,9 @@ class OcrdDinglehopperEvaluate(Processor): mimetype=mimetype, local_filename=report_prefix + report_suffix) + # Clear cache between files + _levenshtein_matrix.cache_clear() + if __name__ == '__main__': ocrd_dinglehopper()