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()