dinglehopper: Clear Levenshtein cache between OCR-D files

pull/29/head
Gerber, Mike 5 years ago
parent 1206c9bb4b
commit 5cf4eddaeb

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

Loading…
Cancel
Save