1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-09 11:50:00 +02:00

dinglehopper: Clear Levenshtein cache between OCR-D files

This commit is contained in:
Gerber, Mike 2019-11-20 13:05:45 +01:00
parent 1206c9bb4b
commit 5cf4eddaeb

View file

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